This commit is contained in:
TheiLLeniumStudios
2023-02-06 15:03:39 +00:00
parent 3fa2c013e8
commit eda64d0ece
2 changed files with 2 additions and 4 deletions
+2
View File
@@ -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"
# #
-4
View File
@@ -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