Changed upgrade unzipping to avoid overwriting without prompting
#144 #145 #146
This commit is contained in:
1 parent
7b8fd753f3
commit
a8aa3846da
1 file changed
+3
-2
+3
-2
@@ -95,8 +95,9 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
|
||||
fi
|
||||
done
|
||||
|
||||
# ... overwrite all game files, except config files
|
||||
unzip -q ${TMP_ZIP} -x $(ls server.properties whitelist.json permissions.json 2> /dev/null)
|
||||
# Do not overwrite existing files, which means the cleanup above needs to account for things
|
||||
# that MUST be replaced on upgrade
|
||||
unzip -q -n ${TMP_ZIP}
|
||||
rm ${TMP_ZIP}
|
||||
|
||||
chmod +x bedrock_server
|
||||
|
||||
Reference in new issue
Block a user