mirror of
https://github.com/iLLeniumStudios/fivem-resource-watcher
synced 2024-02-26 13:38:52 +01:00
Update
This commit is contained in:
+2
-2
@@ -78,11 +78,11 @@ if ! is_array_empty "$resources_to_restart"; then
|
|||||||
echo "Will restart individual resources"
|
echo "Will restart individual resources"
|
||||||
for resource in $resources_to_restart; do
|
for resource in $resources_to_restart; do
|
||||||
echo "Restarting ${resource}"
|
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
|
done
|
||||||
else
|
else
|
||||||
echo "Will restart the whole server"
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo "Nothing to restart"
|
echo "Nothing to restart"
|
||||||
|
|||||||
Reference in New Issue
Block a user