Skip to content

Use /data/tmp for WORLD zip preparation #3322

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itzg
Copy link
Owner

@itzg itzg commented Feb 16, 2025

No description provided.

@github-actions github-actions bot added the status/stale No recently activity has been seen and will be closed soon. label Mar 19, 2025
@github-actions github-actions bot closed this Mar 24, 2025
@itzg itzg reopened this Mar 24, 2025
@itzg itzg removed the status/stale No recently activity has been seen and will be closed soon. label Mar 24, 2025
Copy link
Contributor

@MaxLevs MaxLevs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -26,24 +26,25 @@ if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] );

if isURL "$WORLD"; then
log "Downloading world from $WORLD"
if ! get -o /tmp/world.bin "$WORLD"; then
mkdir -p /data/tmp
if ! get -o /data/tmp/world.bin "$WORLD"; then
Copy link
Contributor

@MaxLevs MaxLevs Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like it will be more convenient to have a single variable for a path to world.bin

We can use something like

RAW_WORLD_DATA_PATH="/data/tmp/world.bin"

and then

mkdir -p "$(basedir "$RAW_WORLD_DATA_PATH")"
if ! get -o "$RAW_WORLD_DATA_PATH" "$WORLD"; then
# and so on

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants