From b38f4f06ed941b1734915fc62a9963568adad428 Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Mon, 6 Feb 2023 14:09:37 +0000 Subject: [PATCH] Update --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0dfe17b..ae233d8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -78,11 +78,11 @@ if ! is_array_empty "$resources_to_restart"; then echo "Will restart individual resources" for resource in $resources_to_restart; do echo "Restarting ${resource}" - rcon -a ${SERVER_IP}:${SERVER_PORT} -p ${RCON_PASSWORD} command "ensure ${resource}" + rcon -a "${SERVER_IP}:${SERVER_PORT}" -p "${RCON_PASSWORD}" command "ensure ${resource}" done else echo "Will restart the whole server" - rcon -a ${SERVER_IP}:${SERVER_PORT} -p ${RCON_PASSWORD} command 'quit "Restarting server"' + rcon -a "${SERVER_IP}:${SERVER_PORT}" -p "${RCON_PASSWORD}" command 'txaEvent "serverShuttingDown" "{"delay":5000,"author":Server Owner,"message":"Server restarting."}"' fi else echo "Nothing to restart"