fix
This commit is contained in:
parent
aeca2ab94a
commit
e446730a2f
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue