mirror of
https://github.com/iLLeniumStudios/fivem-resource-watcher
synced 2024-02-26 13:38:52 +01:00
Uncomment rcon commands
This commit is contained in:
@@ -21,6 +21,7 @@ This allows you, as a server owner to have a Git Managed workflow for your serve
|
|||||||
| serverIP | IP of the FiveM server | true | |
|
| serverIP | IP of the FiveM server | true | |
|
||||||
| serverPort | Port of the FiveM server | false | 30120 |
|
| serverPort | Port of the FiveM server | false | 30120 |
|
||||||
| resourcesFolder | Resources folder name | false | resources |
|
| resourcesFolder | Resources folder name | false | resources |
|
||||||
|
| resourcesToIgnore | List of resources that you want to ignore separated by spaces and not restart when changes are made to them | false | |
|
||||||
|
|
||||||
## How to set up
|
## How to set up
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -72,12 +72,12 @@ if ! is_array_empty "$resources_to_restart"; then
|
|||||||
echo "Ignoring restart of the resource ${resource}"
|
echo "Ignoring restart of the resource ${resource}"
|
||||||
else
|
else
|
||||||
echo "Restarting ${resource}"
|
echo "Restarting ${resource}"
|
||||||
#icecon --command "ensure ${resource}" ${SERVER_IP}:${SERVER_PORT} ${RCON_PASSWORD}
|
icecon --command "ensure ${resource}" ${SERVER_IP}:${SERVER_PORT} ${RCON_PASSWORD}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "Will restart the whole server"
|
echo "Will restart the whole server"
|
||||||
#icecon --command "quit" "${SERVER_IP}:${SERVER_PORT}" "${RCON_PASSWORD}"
|
icecon --command "quit" "${SERVER_IP}:${SERVER_PORT}" "${RCON_PASSWORD}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Nothing to restart"
|
echo "Nothing to restart"
|
||||||
|
|||||||
Reference in New Issue
Block a user