From 0ab539adec7f441bf9e61199cf5a7cfbef4f5509 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 25 Nov 2024 22:39:53 +0100 Subject: fixed update code --- update_and_start.sh | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3-70-g09d2