diff --git a/scripts/update.sh b/scripts/update.sh index 5203c1d37..f9b6528ce 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -32,18 +32,9 @@ if [ -z "$TARGET_MANIFEST" ]; then fi exit 1 fi - +echo "player count: $(get_player_count)" if [ "$CURRENT_MANIFEST" != "$TARGET_MANIFEST" ]; then - if [ "${RCON_ENABLED,,}" = true ]; then - rm /palworld/steamapps/appmanifest_2394010.acf - if [ -n "${DISCORD_WEBHOOK_URL}" ]; then - /home/steam/server/discord.sh "Server will update in ${AUTO_UPDATE_WARN_MINUTES} minutes" "info" & - fi - rcon-cli -c /home/steam/server/rcon.yaml "broadcast The_Server_will_update_in_${AUTO_UPDATE_WARN_MINUTES}_Minutes" - sleep "${AUTO_UPDATE_WARN_MINUTES}m" - backup - rcon-cli -c /home/steam/server/rcon.yaml "shutdown 1" - else + if [ "${RCON_ENABLED,,}" != true ]; then echo "An update is available however auto updating without rcon is not supported" if [ -n "${DISCORD_WEBHOOK_URL}" ]; then /home/steam/server/discord.sh "An update is available however auto updating without rcon is not supported" "warn"