diff --git a/lgsm/functions/check.sh b/lgsm/functions/check.sh index ec067de66..5fd1bc241 100644 --- a/lgsm/functions/check.sh +++ b/lgsm/functions/check.sh @@ -17,7 +17,7 @@ if [ "${function_selfname}" != "command_monitor.sh" ];then check_permissions.sh fi -if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]&&[ "${function_selfname}" != "command_details.sh" ]&&[ "${function_selfname}" != "command_postdetails.sh" ]; then +if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]&&[ "${function_selfname}" != "command_update_linuxgsm.sh" ]&&[ "${function_selfname}" != "command_details.sh" ]&&[ "${function_selfname}" != "command_postdetails.sh" ]; then check_system_dir.sh fi diff --git a/lgsm/functions/command_update_functions.sh b/lgsm/functions/command_update_linuxgsm.sh similarity index 98% rename from lgsm/functions/command_update_functions.sh rename to lgsm/functions/command_update_linuxgsm.sh index 05c19566a..991da06eb 100644 --- a/lgsm/functions/command_update_functions.sh +++ b/lgsm/functions/command_update_linuxgsm.sh @@ -1,5 +1,5 @@ #!/bin/bash -# LinuxGSM command_update_functions.sh function +# LinuxGSM command_update_linuxgsm.sh function # Author: Daniel Gibbs # Website: https://gameservermanagers.com # Description: Deletes the functions dir to allow re-downloading of functions from GitHub. diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index f7a4ac79c..d915b1c9f 100644 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -392,6 +392,11 @@ functionfile="${FUNCNAME}" fn_fetch_function } +command_update_linuxgsm.sh(){ +functionfile="${FUNCNAME}" +fn_fetch_function +} + command_update.sh(){ functionfile="${FUNCNAME}" fn_fetch_function diff --git a/lgsm/functions/core_getopt.sh b/lgsm/functions/core_getopt.sh index a17487eb5..79275ed43 100644 --- a/lgsm/functions/core_getopt.sh +++ b/lgsm/functions/core_getopt.sh @@ -17,7 +17,7 @@ cmd_restart=( "r;restart" "command_restart.sh" "Restart the server." ) cmd_details=( "dt;details" "command_details.sh" "Display server information." ) cmd_postdetails=( "pd;postdetails" "command_postdetails.sh" "Post details to hastebin (removing passwords)." ) cmd_backup=( "b;backup" "command_backup.sh" "Create backup archives of the server." ) -cmd_update_functions=( "ul;update-lgsm;uf;update-functions" "command_update_functions.sh" "Update LinuxGSM functions." ) +cmd_update_linuxgsm=( "ul;update-lgsm;uf;update-functions" "command_update_linuxgsm.sh" "Update LinuxGSM." ) cmd_test_alert=( "ta;test-alert" "command_test_alert.sh" "Send a test alert." ) cmd_monitor=( "m;monitor" "command_monitor.sh" "Check server status and restart if crashed." ) # Console servers only @@ -66,7 +66,7 @@ if [ -n "${appid}" ]; then fi # Update LGSM -currentopt+=( "${cmd_update_functions[@]}" ) +currentopt+=( "${cmd_update_linuxgsm[@]}" ) #Backup currentopt+=( "${cmd_backup[@]}" )