diff options
Diffstat (limited to 'update_and_start.sh')
-rwxr-xr-x | update_and_start.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/update_and_start.sh b/update_and_start.sh index 8e72105..4cba621 100755 --- a/update_and_start.sh +++ b/update_and_start.sh @@ -11,8 +11,6 @@ TEMP_CONFIG_PATH=/tmp/server_config.toml LATEST_VER=$(curl https://wizards.cdn.spacestation14.com/fork/wizards | sed -nE 's/(\s*)<dd><span class="versionNumber">(.*)<\/span><\/dd>/\2/p' | head -1) if [ \! -f "$BUILD_JSON_PATH" ] || ! grep -q "$LATEST_VER" "$BUILD_JSON_PATH"; then - rm -r "$SERVER_PATH"/* - # backup server config if [ -f "$CONFIG_PATH" ]; then cp "$CONFIG_PATH" "$TEMP_CONFIG_PATH" @@ -24,7 +22,7 @@ if [ \! -f "$BUILD_JSON_PATH" ] || ! grep -q "$LATEST_VER" "$BUILD_JSON_PATH"; t # x64 version #wget "https://wizards.cdn.spacestation14.com/fork/wizards/version/$LATEST_VER/file/SS14.Server_linux-x64.zip" -O "$TEMP_ZIP_PATH" - unzip "$TEMP_ZIP_PATH" -d "$SERVER_PATH" + unzip -o "$TEMP_ZIP_PATH" -d "$SERVER_PATH" rm "$TEMP_ZIP_PATH" chmod +x "$SERVER" |