committed by
GitHub
1 changed files with 35 additions and 35 deletions
@ -1,36 +1,36 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM command_update_countdown.sh function |
# LGSM command_update_countdown.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: https://gameservermanagers.com |
# Website: https://gameservermanagers.com |
||||
lgsm_version="210516" |
lgsm_version="210516" |
||||
|
|
||||
# Updates's the server with countdown |
# Updates's the server with countdown |
||||
|
|
||||
local modulename="Updating" |
local modulename="Updating" |
||||
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
||||
|
|
||||
|
|
||||
check.sh |
check.sh |
||||
command_execute.sh |
command_execute.sh |
||||
|
|
||||
|
|
||||
update_countdown_timer(){ |
update_countdown_timer(){ |
||||
|
|
||||
COUNTDOWN_TYPE=UPDATE |
COUNTDOWN_TYPE=UPDATE |
||||
|
|
||||
if [ "$1" != "fast" ] |
if [ "$1" != "fast" ] |
||||
then |
then |
||||
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in 1 minute!" |
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in 1 minute!" |
||||
sleep 30 |
sleep 30 |
||||
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in 30 seconds!" |
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in 30 seconds!" |
||||
sleep 20 |
sleep 20 |
||||
fi |
fi |
||||
|
|
||||
for SECONDS in 10 9 8 7 6 5 4 3 2 1 |
for SECONDS in 10 9 8 7 6 5 4 3 2 1 |
||||
do |
do |
||||
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in $SECONDS seconds!" |
execute "say WARNING!!! SERVER $COUNTDOWN_TYPE in $SECONDS seconds!" |
||||
sleep 1 |
sleep 1 |
||||
done |
done |
||||
forceupdate=1; |
forceupdate=1; |
||||
update_check.sh |
update_check.sh |
||||
} |
} |
Loading…
Reference in new issue