Browse Source

fn_commandname

pull/2958/head
Daniel Gibbs 5 years ago
parent
commit
79a411f9bc
  1. 1
      lgsm/functions/alert.sh
  2. 1
      lgsm/functions/check_last_update.sh
  3. 1
      lgsm/functions/check_version.sh
  4. 1
      lgsm/functions/command_install.sh
  5. 1
      lgsm/functions/command_mods_remove.sh
  6. 1
      lgsm/functions/command_monitor.sh
  7. 4
      lgsm/functions/command_ts3_server_pass.sh
  8. 4
      lgsm/functions/info_messages.sh
  9. 1
      lgsm/functions/install_modules.sh
  10. 3
      lgsm/functions/update_minecraft.sh
  11. 3
      lgsm/functions/update_minecraft_bedrock.sh
  12. 4
      lgsm/functions/update_mta.sh
  13. 1
      lgsm/functions/update_mumble.sh
  14. 1
      lgsm/functions/update_steamcmd.sh
  15. 2
      lgsm/functions/update_ts3.sh

1
lgsm/functions/alert.sh

@ -99,6 +99,7 @@ fn_alert_log
if [ "${postalert}" == "on" ]&&[ -n "${postalert}" ]; then
exitbypass=1
command_postdetails.sh
fn_commandname
elif [ "${postalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
fn_print_warn_nl "More Info not enabled"
fn_script_log_warn "More Info alerts not enabled"

1
lgsm/functions/check_last_update.sh

@ -20,5 +20,6 @@ if [ -f "${lockdir}/lastupdate.lock" ]&&[ "${status}" != "0" ]; then
fn_print_info "${selfname} has not been restarted since last update"
fn_script_log_info "${selfname} has not been restarted since last update"
command_restart.sh
fn_commandname
fi
fi

1
lgsm/functions/check_version.sh

@ -16,4 +16,5 @@ if [ -n "${modulesversion}" ]&&[ -n "${version}" ]&&[ "${version}" != "${modules
fn_sleep_time
fn_script_log_error "LinuxGSM Version mismatch: ${selfname}: ${version}: modules: ${modulesversion}"
command_update_linuxgsm.sh
fn_commandname
fi

1
lgsm/functions/command_install.sh

@ -45,6 +45,7 @@ else
install_ts3db.sh
elif [ "${shortname}" == "mta" ]; then
command_install_resources_mta.sh
fn_commandname
fi
fix.sh

1
lgsm/functions/command_mods_remove.sh

@ -126,6 +126,7 @@ if [ "${engine}" == "unity3d" ]&&[[ "${modprettyname}" == *"Oxide"* ]]; then
fn_script_log "Validating to restore original ${gamename} files replaced by Oxide"
exitbypass="1"
command_validate.sh
fn_commandname
unset exitbypass
fi
echo -e "${modprettyname} removed"

1
lgsm/functions/command_monitor.sh

@ -173,6 +173,7 @@ for queryattempt in {1..5}; do
alert="restartquery"
alert.sh
command_restart.sh
fn_commandname
core_exit.sh
fi
elif [ "${querymethod}" == "gamedig" ]; then

4
lgsm/functions/command_ts3_server_pass.sh

@ -31,6 +31,7 @@ fn_serveradmin_password_set(){
ts3serverpass="1"
exitbypass="1"
command_start.sh
fn_commandname
fn_print_ok_nl "New password applied"
fn_script_log_pass "New ServerAdmin password applied"
}
@ -42,13 +43,16 @@ if [ "${status}" != "0" ]; then
# Stop any running server.
exitbypass="1"
command_stop.sh
fn_commandname
fn_serveradmin_password_set
parms="serveradmin_password=\"${newpassword}\" inifile=\"${servercfgfullpath}\" > /dev/null 2>&1"
ts3serverpass="0"
command_restart.sh
fn_commandname
else
fn_serveradmin_password_set
command_stop.sh
fn_commandname
fi
core_exit.sh

4
lgsm/functions/info_messages.sh

@ -135,7 +135,7 @@ fn_info_message_gameserver_resource(){
echo -e "${lightyellow}Game Server Resource Usage${default}"
fn_messages_separator
{
if [ "${status}" == "1" ]; then
if [ "${status}" != "0" ]; then
echo -e "${lightblue}CPU Used:\t${default}${cpuused}%${default}"
echo -e "${lightblue}Mem Used:\t${default}${pmemused}%\t${memused}MB${default}"
else
@ -1515,7 +1515,7 @@ fn_info_message_select_engine(){
elif [ "${shortname}" == "bf1942" ]; then
fn_info_message_bf1942
elif [ "${shortname}" == "bfv" ]; then
fn_info_message_bfv
fn_info_message_bfv
elif [ "${shortname}" == "rtcw" ]; then
fn_info_message_rtcw
elif [ "${shortname}" == "rust" ]; then

1
lgsm/functions/install_modules.sh

@ -14,3 +14,4 @@ cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.sh "${functionsdir}"
cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.py "${functionsdir}"
chmod +x "${functionsdir}"/*
command_update_linuxgsm.sh
fn_commandname

3
lgsm/functions/update_minecraft.sh

@ -159,15 +159,18 @@ fn_update_minecraft_compare(){
command_start.sh
exitbypass=1
command_stop.sh
fn_commandname
# If server started.
else
fn_stop_warning
exitbypass=1
command_stop.sh
fn_commandname
exitbypass=1
fn_update_minecraft_dl
exitbypass=1
command_start.sh
fn_commandname
fi
date +%s > "${lockdir}/lastupdate.lock"
alert="update"

3
lgsm/functions/update_minecraft_bedrock.sh

@ -126,15 +126,18 @@ fn_update_minecraft_compare(){
command_start.sh
exitbypass=1
command_stop.sh
fn_commandname
# If server started.
else
fn_stop_warning
exitbypass=1
command_stop.sh
fn_commandname
exitbypass=1
fn_update_minecraft_dl
exitbypass=1
command_start.sh
fn_commandname
fi
date +%s > "${lockdir}/lastupdate.lock"
alert="update"

4
lgsm/functions/update_mta.sh

@ -38,7 +38,6 @@ fn_update_mta_localbuild(){
fn_script_log_info "Forcing server restart"
exitbypass=1
command_stop.sh
fn_commandname
exitbypass=1
command_start.sh
fn_commandname
@ -156,15 +155,18 @@ fn_update_mta_compare(){
command_start.sh
exitbypass=1
command_stop.sh
fn_commandname
# If server started.
else
fn_stop_warning
exitbypass=1
command_stop.sh
fn_commandname
exitbypass=1
fn_update_mta_dl
exitbypass=1
command_start.sh
fn_commandname
fi
date +%s > "${lockdir}/lastupdate.lock"
alert="update"

1
lgsm/functions/update_mumble.sh

@ -89,7 +89,6 @@ fn_update_mumble_compare(){
fn_update_mumble_dl
exitbypass=1
command_start.sh
fn_commandname
exitbypass=1
command_stop.sh
fn_commandname

1
lgsm/functions/update_steamcmd.sh

@ -237,6 +237,7 @@ if [ "${forceupdate}" == "1" ]; then
date +%s > "${lockdir}/lastupdate.lock"
exitbypass=1
command_start.sh
fn_commandname
else
fn_update_steamcmd_dl
date +%s > "${lockdir}/lastupdate.lock"

2
lgsm/functions/update_ts3.sh

@ -42,7 +42,6 @@ fn_update_ts3_localbuild(){
fn_script_log_info "Forcing server restart"
exitbypass=1
command_stop.sh
fn_commandname
exitbypass=1
command_start.sh
fn_commandname
@ -152,7 +151,6 @@ fn_update_ts3_compare(){
fn_update_ts3_dl
exitbypass=1
command_start.sh
fn_commandname
exitbypass=1
command_stop.sh
fn_commandname

Loading…
Cancel
Save