mirror of
https://github.com/iLLeniumStudios/fivem-resource-watcher
synced 2024-02-26 13:38:52 +01:00
Update
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Container image that runs your code
|
# Container image that runs your code
|
||||||
FROM alpine:3.17
|
FROM alpine:3.17
|
||||||
|
|
||||||
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
# Use icecon instead. For some reason rcon-cli doesn't send a valid command
|
# Use icecon instead. For some reason rcon-cli doesn't send a valid command
|
||||||
#ARG RCON_VERSION="0.10.2"
|
#ARG RCON_VERSION="0.10.2"
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -78,10 +78,6 @@ 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}"
|
||||||
echo "ensure ${resource} ${SERVER_IP}:${SERVER_PORT} ${RCON_PASSWORD}"
|
|
||||||
which icecon
|
|
||||||
icecon --help
|
|
||||||
icecon
|
|
||||||
icecon --command "ensure ${resource}" ${SERVER_IP}:${SERVER_PORT} ${RCON_PASSWORD}
|
icecon --command "ensure ${resource}" ${SERVER_IP}:${SERVER_PORT} ${RCON_PASSWORD}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user