Skip to content

Commit a8aa384

Browse files
committed
Changed upgrade unzipping to avoid overwriting without prompting
#144 #145 #146
1 parent 7b8fd75 commit a8aa384

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bedrock-entry.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
9595
fi
9696
done
9797

98-
# ... overwrite all game files, except config files
99-
unzip -q ${TMP_ZIP} -x $(ls server.properties whitelist.json permissions.json 2> /dev/null)
98+
# Do not overwrite existing files, which means the cleanup above needs to account for things
99+
# that MUST be replaced on upgrade
100+
unzip -q -n ${TMP_ZIP}
100101
rm ${TMP_ZIP}
101102

102103
chmod +x bedrock_server

0 commit comments

Comments
 (0)