Răsfoiți Sursa

renaming update_functions to update_linuxgsm

Daniel Gibbs 9 ani în urmă
părinte
comite
7fd3177c89

+ 1 - 1
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
 

+ 1 - 1
lgsm/functions/command_update_functions.sh → 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.

+ 5 - 0
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

+ 2 - 2
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[@]}" )