Skip to content

Commit 361d029

Browse files
committed
Use /data/tmp for WORLD zip preparation
1 parent 3a678a6 commit 361d029

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/start-setupWorld

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,25 @@ if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] );
2626

2727
if isURL "$WORLD"; then
2828
log "Downloading world from $WORLD"
29-
if ! get -o /tmp/world.bin "$WORLD"; then
29+
mkdir -p /data/tmp
30+
if ! get -o /data/tmp/world.bin "$WORLD"; then
3031
logError "Failed to download world from $WORLD"
3132
exit 1
3233
fi
33-
WORLD=/tmp/world.bin
34+
WORLD=/data/tmp/world.bin
3435
fi
3536

3637
if [ -f "$WORLD" ]; then
3738
log "Extracting world"
3839

3940
# Stage contents so that the correct subdirectory can be picked off
40-
mkdir -p /tmp/world-data
41-
if ! extract "$WORLD" /tmp/world-data; then
41+
mkdir -p /data/tmp/world-data
42+
if ! extract "$WORLD" /data/tmp/world-data; then
4243
logError "Extracting world from $WORLD"
4344
exit 1
4445
fi
4546

46-
baseDirs=$(find /tmp/world-data -name "level.dat" -exec dirname "{}" \;)
47+
baseDirs=$(find /data/tmp/world-data -name "level.dat" -exec dirname "{}" \;)
4748

4849
if ! [[ $baseDirs ]]; then
4950
logError "World content is not valid since level.dat could not be found"

0 commit comments

Comments
 (0)