From a8aa3846dafbb8aa764dd5f0a04720db2f84c791 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 23 Apr 2021 08:56:21 -0500 Subject: [PATCH] Changed upgrade unzipping to avoid overwriting without prompting #144 #145 #146 --- bedrock-entry.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 4f0a867..0291d7e 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -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