This commit is contained in:
Andrew Marchukov 2021-04-29 10:46:58 +03:00
parent aeca2ab94a
commit e446730a2f

View file

@ -16,9 +16,11 @@ while true; do
if [ $EXITSTATUS -eq 0 ]; then if [ $EXITSTATUS -eq 0 ]; then
if [ "$LOCALAPPVER" != "$REMOTEAPPVER" ]; then if [ "$LOCALAPPVER" != "$REMOTEAPPVER" ]; then
for n in {60..1}; do 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'" rcon -a "$rconip" -p "$rconpass" "say 'THE SERVER WILL BE RESTARTED IN $n'"
sleep 1 sleep 1
done done
done
/opt/restart-ins.sh /opt/restart-ins.sh
fi fi
fi fi