|
|
@ -530,32 +530,17 @@ fn_print_ascii_logo(){ |
|
|
|
echo -e "" |
|
|
|
} |
|
|
|
|
|
|
|
fn_print_stop_warning_update(){ |
|
|
|
fn_print_warn "${commandaction} server: ${remotelocation}: ${selfname} will be stopped during update" |
|
|
|
fn_script_log_warn "${commandaction} server: ${remotelocation}: ${selfname} will be stopped during update" |
|
|
|
fn_print_stop_warning(){ |
|
|
|
fn_print_warn "${commandaction} server: ${selfname} will be stopped" |
|
|
|
fn_script_log_warn "${commandaction} server: ${selfname} will be stopped" |
|
|
|
totalseconds=3 |
|
|
|
for seconds in {3..1}; do |
|
|
|
fn_print_warn "${commandaction} server: ${remotelocation}: ${selfname} will be stopped during update: ${totalseconds}" |
|
|
|
fn_print_warn "${commandaction} server: ${selfname} will be stopped: ${totalseconds}" |
|
|
|
totalseconds=$((totalseconds - 1)) |
|
|
|
sleep 1 |
|
|
|
if [ "${seconds}" == "0" ]; then |
|
|
|
break |
|
|
|
fi |
|
|
|
done |
|
|
|
fn_print_warn_nl "${commandaction} server: SteamCMD: ${selfname} will be stopped during update" |
|
|
|
} |
|
|
|
|
|
|
|
fn_print_stop_warning_backup(){ |
|
|
|
fn_print_warn "${commandaction} server: ${selfname} will be stopped during backup" |
|
|
|
fn_script_log_warn "${commandaction} server: ${selfname} will be stopped during backup" |
|
|
|
totalseconds=3 |
|
|
|
for seconds in {3..1}; do |
|
|
|
fn_print_warn "${commandaction} server: ${selfname} will be stopped during backup: ${totalseconds}" |
|
|
|
totalseconds=$((totalseconds - 1)) |
|
|
|
sleep 1 |
|
|
|
if [ "${seconds}" == "0" ]; then |
|
|
|
break |
|
|
|
fi |
|
|
|
done |
|
|
|
fn_print_warn_nl "${commandaction} server: ${selfname} will be stopped during backup: ${totalseconds}" |
|
|
|
fn_print_warn_nl "${commandaction} server: ${selfname} will be stopped" |
|
|
|
} |
|
|
|