Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Luatan committed Feb 11, 2024
1 parent 04a1368 commit 87bd16e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 87bd16e

Please sign in to comment.