summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate_and_start.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/update_and_start.sh b/update_and_start.sh
index 4cba621..1cb96eb 100755
--- a/update_and_start.sh
+++ b/update_and_start.sh
@@ -16,6 +16,8 @@ if [ \! -f "$BUILD_JSON_PATH" ] || ! grep -q "$LATEST_VER" "$BUILD_JSON_PATH"; t
cp "$CONFIG_PATH" "$TEMP_CONFIG_PATH"
fi
+ find "$SERVER_PATH" -mindepth 1 -not -wholename "$SERVER_PATH/data*" -not -wholename "$SERVER_PATH/logs*" -delete
+
# ARM64 version
wget "https://wizards.cdn.spacestation14.com/fork/wizards/version/$LATEST_VER/file/SS14.Server_linux-arm64.zip" -O "$TEMP_ZIP_PATH"