Browse Source

messages

pull/2959/head
Daniel Gibbs 5 years ago
parent
commit
9778e17f66
  1. 2
      lgsm/functions/command_backup.sh
  2. 2
      lgsm/functions/command_validate.sh
  3. 10
      lgsm/functions/core_messages.sh
  4. 2
      lgsm/functions/update_factorio.sh
  5. 2
      lgsm/functions/update_minecraft.sh
  6. 2
      lgsm/functions/update_minecraft_bedrock.sh
  7. 2
      lgsm/functions/update_mta.sh
  8. 2
      lgsm/functions/update_mumble.sh
  9. 4
      lgsm/functions/update_steamcmd.sh
  10. 2
      lgsm/functions/update_ts3.sh

2
lgsm/functions/command_backup.sh

@ -73,7 +73,7 @@ fn_backup_stop_server(){
# Server is running and will be stopped if stoponbackup=on or unset.
# If server is started
elif [ "${status}" != "0" ]; then
fn_print_stop_warning
fn_print_restart_warning
startserver="1"
exitbypass=1
command_stop.sh

2
lgsm/functions/command_validate.sh

@ -35,7 +35,7 @@ check.sh
fn_print_dots "${remotelocation}"
if [ "${status}" != "0" ]; then
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

10
lgsm/functions/core_messages.sh

@ -530,17 +530,17 @@ fn_print_ascii_logo(){
echo -e ""
}
fn_print_stop_warning(){
fn_print_warn "${selfname} will be stopped"
fn_script_log_warn "${selfname} will be stopped"
fn_print_restart_warning(){
fn_print_warn "${selfname} will be restarted"
fn_script_log_warn "${selfname} will be restarted"
totalseconds=3
for seconds in {3..1}; do
fn_print_warn "${selfname} will be stopped: ${totalseconds}"
fn_print_warn "${selfname} will be restarted: ${totalseconds}"
totalseconds=$((totalseconds - 1))
sleep 1
if [ "${seconds}" == "0" ]; then
break
fi
done
fn_print_warn_nl "${selfname} will be stopped"
fn_print_warn_nl "${selfname} will be restarted"
}

2
lgsm/functions/update_factorio.sh

@ -102,7 +102,7 @@ fn_update_factorio_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

2
lgsm/functions/update_minecraft.sh

@ -162,7 +162,7 @@ fn_update_minecraft_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

2
lgsm/functions/update_minecraft_bedrock.sh

@ -129,7 +129,7 @@ fn_update_minecraft_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

2
lgsm/functions/update_mta.sh

@ -158,7 +158,7 @@ fn_update_mta_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

2
lgsm/functions/update_mumble.sh

@ -94,7 +94,7 @@ fn_update_mumble_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

4
lgsm/functions/update_steamcmd.sh

@ -185,7 +185,7 @@ fn_update_steamcmd_compare(){
fn_update_steamcmd_dl
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname
@ -276,7 +276,7 @@ fn_print_dots "${remotelocation}"
if [ "${forceupdate}" == "1" ]; then
# forceupdate bypasses update checks.
if [ "${status}" != "0" ]; then
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

2
lgsm/functions/update_ts3.sh

@ -156,7 +156,7 @@ fn_update_ts3_compare(){
fn_commandname
# If server started.
else
fn_print_stop_warning
fn_print_restart_warning
exitbypass=1
command_stop.sh
fn_commandname

Loading…
Cancel
Save