fix
This commit is contained in:
parent
e446730a2f
commit
a203556a53
2 changed files with 8 additions and 6 deletions
|
|
@ -15,12 +15,8 @@ while true; do
|
||||||
EXITSTATUS=$?
|
EXITSTATUS=$?
|
||||||
if [ $EXITSTATUS -eq 0 ]; then
|
if [ $EXITSTATUS -eq 0 ]; then
|
||||||
if [ "$LOCALAPPVER" != "$REMOTEAPPVER" ]; then
|
if [ "$LOCALAPPVER" != "$REMOTEAPPVER" ]; then
|
||||||
for n in {60..1}; do
|
export rconlist
|
||||||
for rconip in $(echo "${rconlist//,/ }"); do
|
export rconpass
|
||||||
rcon -a "$rconip" -p "$rconpass" "say 'THE SERVER WILL BE RESTARTED IN $n'"
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
done
|
|
||||||
/opt/restart-ins.sh
|
/opt/restart-ins.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,12 @@ LOCALAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -
|
||||||
EXITSTATUS=$?
|
EXITSTATUS=$?
|
||||||
if [ $EXITSTATUS -eq 0 ]; then
|
if [ $EXITSTATUS -eq 0 ]; then
|
||||||
echo "$LOCALAPPVER" >/opt/sandstorm-server.version
|
echo "$LOCALAPPVER" >/opt/sandstorm-server.version
|
||||||
|
for n in {60..1}; do
|
||||||
|
for rconip in $(echo "${rconlist//,/ }"); do
|
||||||
|
rcon -a "$rconip" -p "$rconpass" "say 'THE SERVER WILL BE RESTARTED IN $n'"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
done
|
||||||
docker stop sandstorm-modmap
|
docker stop sandstorm-modmap
|
||||||
docker rm sandstorm-modmap
|
docker rm sandstorm-modmap
|
||||||
docker pull andrewmhub/insurgency-sandstorm
|
docker pull andrewmhub/insurgency-sandstorm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue