Browse Source

renaming update_functions to update_linuxgsm

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
7fd3177c89
  1. 2
      lgsm/functions/check.sh
  2. 2
      lgsm/functions/command_update_linuxgsm.sh
  3. 5
      lgsm/functions/core_functions.sh
  4. 4
      lgsm/functions/core_getopt.sh

2
lgsm/functions/check.sh

@ -17,7 +17,7 @@ if [ "${function_selfname}" != "command_monitor.sh" ];then
check_permissions.sh check_permissions.sh
fi 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 check_system_dir.sh
fi fi

2
lgsm/functions/command_update_functions.sh → lgsm/functions/command_update_linuxgsm.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# LinuxGSM command_update_functions.sh function # LinuxGSM command_update_linuxgsm.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub. # Description: Deletes the functions dir to allow re-downloading of functions from GitHub.

5
lgsm/functions/core_functions.sh

@ -392,6 +392,11 @@ functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }
command_update_linuxgsm.sh(){
functionfile="${FUNCNAME}"
fn_fetch_function
}
command_update.sh(){ command_update.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function

4
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_details=( "dt;details" "command_details.sh" "Display server information." )
cmd_postdetails=( "pd;postdetails" "command_postdetails.sh" "Post details to hastebin (removing passwords)." ) 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_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_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." ) cmd_monitor=( "m;monitor" "command_monitor.sh" "Check server status and restart if crashed." )
# Console servers only # Console servers only
@ -66,7 +66,7 @@ if [ -n "${appid}" ]; then
fi fi
# Update LGSM # Update LGSM
currentopt+=( "${cmd_update_functions[@]}" ) currentopt+=( "${cmd_update_linuxgsm[@]}" )
#Backup #Backup
currentopt+=( "${cmd_backup[@]}" ) currentopt+=( "${cmd_backup[@]}" )

Loading…
Cancel
Save