File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,24 +26,25 @@ if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] );
26
26
27
27
if isURL " $WORLD " ; then
28
28
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
30
31
logError " Failed to download world from $WORLD "
31
32
exit 1
32
33
fi
33
- WORLD=/tmp/world.bin
34
+ WORLD=/data/ tmp/world.bin
34
35
fi
35
36
36
37
if [ -f " $WORLD " ]; then
37
38
log " Extracting world"
38
39
39
40
# 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
42
43
logError " Extracting world from $WORLD "
43
44
exit 1
44
45
fi
45
46
46
- baseDirs=$( find /tmp/world-data -name " level.dat" -exec dirname " {}" \; )
47
+ baseDirs=$( find /data/ tmp/world-data -name " level.dat" -exec dirname " {}" \; )
47
48
48
49
if ! [[ $baseDirs ]]; then
49
50
logError " World content is not valid since level.dat could not be found"
You can’t perform that action at this time.
0 commit comments