Browse Source

command name

pull/2958/head
Daniel Gibbs 5 years ago
parent
commit
7fed205f74
  1. 2
      lgsm/functions/command_console.sh
  2. 9
      lgsm/functions/command_details.sh
  3. 9
      lgsm/functions/command_dev_clear_functions.sh
  4. 9
      lgsm/functions/command_dev_debug.sh
  5. 9
      lgsm/functions/command_dev_detect_deps.sh
  6. 9
      lgsm/functions/command_dev_detect_glibc.sh
  7. 9
      lgsm/functions/command_dev_detect_ldd.sh
  8. 9
      lgsm/functions/command_dev_query_raw.sh
  9. 9
      lgsm/functions/command_donate.sh
  10. 9
      lgsm/functions/command_fastdl.sh
  11. 6
      lgsm/functions/command_install.sh
  12. 9
      lgsm/functions/command_install_resources_mta.sh
  13. 9
      lgsm/functions/command_mods_install.sh
  14. 9
      lgsm/functions/command_mods_remove.sh
  15. 9
      lgsm/functions/command_mods_update.sh
  16. 9
      lgsm/functions/command_monitor.sh
  17. 9
      lgsm/functions/command_postdetails.sh
  18. 6
      lgsm/functions/command_restart.sh
  19. 2
      lgsm/functions/command_start.sh
  20. 9
      lgsm/functions/command_stop.sh
  21. 9
      lgsm/functions/command_test_alert.sh
  22. 9
      lgsm/functions/command_ts3_server_pass.sh
  23. 2
      lgsm/functions/command_update.sh
  24. 9
      lgsm/functions/command_update_linuxgsm.sh
  25. 6
      lgsm/functions/command_validate.sh
  26. 6
      lgsm/functions/command_wipe.sh
  27. 9
      lgsm/functions/compress_unreal2_maps.sh
  28. 9
      lgsm/functions/compress_ut99_maps.sh

2
lgsm/functions/command_console.sh

@ -4,7 +4,7 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Gives access to the server tmux console. # Description: Gives access to the server tmux console.
fn_commandname(){} fn_commandname(){
commandname="CONSOLE" commandname="CONSOLE"
commandaction="Access console" commandaction="Access console"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

9
lgsm/functions/command_details.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Displays server information. # Description: Displays server information.
commandname="DETAILS" fn_commandname(){
commandaction="Viewing details" commandname="DETAILS"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Viewing details"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
# Run checks and gathers details to display. # Run checks and gathers details to display.
check.sh check.sh

9
lgsm/functions/command_dev_clear_functions.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Deletes the contents of the functions dir. # Description: Deletes the contents of the functions dir.
commandname="DEV-CLEAR-MODULES" fn_commandname(){
commandaction="Clearing modules" commandname="DEV-CLEAR-MODULES"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Clearing modules"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
echo -e "=================================" echo -e "================================="
echo -e "Clear Functions" echo -e "Clear Functions"

9
lgsm/functions/command_dev_debug.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Dev only: Enables debugging log to be saved to dev-debug.log. # Description: Dev only: Enables debugging log to be saved to dev-debug.log.
commandname="DEV-DEBUG" fn_commandname(){
commandaction="Developer debug" commandname="DEV-DEBUG"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Developer debug"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
if [ -f "${rootdir}/.dev-debug" ]; then if [ -f "${rootdir}/.dev-debug" ]; then
rm "${rootdir:?}/.dev-debug" rm "${rootdir:?}/.dev-debug"

9
lgsm/functions/command_dev_detect_deps.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Detects dependencies the server binary requires. # Description: Detects dependencies the server binary requires.
commandname="DEV-DETECT-DEPS" fn_commandname(){
commandaction="Developer detect deps" commandname="DEV-DETECT-DEPS"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Developer detect deps"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
echo -e "=================================" echo -e "================================="
echo -e "Dependencies Checker" echo -e "Dependencies Checker"

9
lgsm/functions/command_dev_detect_glibc.sh

@ -5,9 +5,12 @@
# Description: Automatically detects the version of GLIBC that is required. # Description: Automatically detects the version of GLIBC that is required.
# Can check a file or directory recursively. # Can check a file or directory recursively.
commandname="DEV-DETECT-GLIBC" fn_commandname(){
commandaction="Developer detect glibc" commandname="DEV-DETECT-GLIBC"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Developer detect glibc"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
echo -e "=================================" echo -e "================================="
echo -e "glibc Requirements Checker" echo -e "glibc Requirements Checker"

9
lgsm/functions/command_dev_detect_ldd.sh

@ -5,9 +5,12 @@
# Description: Automatically detects required deps using ldd. # Description: Automatically detects required deps using ldd.
# Can check a file or directory recursively. # Can check a file or directory recursively.
commandname="DEV-DETECT-LDD" fn_commandname(){
commandaction="Developer detect ldd" commandname="DEV-DETECT-LDD"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Developer detect ldd"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
echo -e "=================================" echo -e "================================="
echo -e "Shared Object dependencies Checker" echo -e "Shared Object dependencies Checker"

9
lgsm/functions/command_dev_query_raw.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Raw gamedig output of the server. # Description: Raw gamedig output of the server.
commandname="DEV-QUERY-RAW" fn_commandname(){
commandaction="Developer query raw" commandname="DEV-QUERY-RAW"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Developer query raw"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
info_config.sh info_config.sh

9
lgsm/functions/command_donate.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Shows ways to donate. # Description: Shows ways to donate.
commandname="DONATE" fn_commandname(){
commandaction="Donate" commandname="DONATE"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Donate"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
fn_print_ascii_logo fn_print_ascii_logo
echo -e "${lightyellow}Support LinuxGSM${default}" echo -e "${lightyellow}Support LinuxGSM${default}"

9
lgsm/functions/command_fastdl.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Creates a FastDL directory. # Description: Creates a FastDL directory.
commandname="FASTDL" fn_commandname(){
commandaction="Fastdl" commandname="FASTDL"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Fastdl"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh

6
lgsm/functions/command_install.sh

@ -6,9 +6,9 @@
# Description: Overall function for the installer. # Description: Overall function for the installer.
fn_commandname(){ fn_commandname(){
commandname="INSTALL" commandname="INSTALL"
commandaction="Installing" commandaction="Installing"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
} }
fn_commandname fn_commandname

9
lgsm/functions/command_install_resources_mta.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Installs the default resources for Multi Theft Auto. # Description: Installs the default resources for Multi Theft Auto.
commandname="DEFAULT-RESOURCES" fn_commandname(){
commandaction="Default Resources" commandname="DEFAULT-RESOURCES"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Default Resources"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
fn_install_resources(){ fn_install_resources(){
echo -e "" echo -e ""

9
lgsm/functions/command_mods_install.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: List and installs available mods along with mods_list.sh and mods_core.sh. # Description: List and installs available mods along with mods_list.sh and mods_core.sh.
commandname="MODS-INSTALL" fn_commandname(){
commandaction="Installing mods" commandname="MODS-INSTALL"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Installing mods"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
mods_core.sh mods_core.sh

9
lgsm/functions/command_mods_remove.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Uninstall mods along with mods_list.sh and mods_core.sh. # Description: Uninstall mods along with mods_list.sh and mods_core.sh.
commandname="MODS-REMOVE" fn_commandname(){
commandaction="Removing mods" commandname="MODS-REMOVE"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Removing mods"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
mods_core.sh mods_core.sh

9
lgsm/functions/command_mods_update.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Updates installed mods along with mods_list.sh and mods_core.sh. # Description: Updates installed mods along with mods_list.sh and mods_core.sh.
commandname="MODS-UPDATE" fn_commandname(){
commandaction="Updating mods" commandname="MODS-UPDATE"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Updating mods"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
mods_core.sh mods_core.sh

9
lgsm/functions/command_monitor.sh

@ -6,9 +6,12 @@
# Description: Monitors server by checking for running processes # Description: Monitors server by checking for running processes
# then passes to gamedig and gsquery. # then passes to gamedig and gsquery.
commandname="MONITOR" fn_commandname(){
commandaction="Monitoring" commandname="MONITOR"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Monitoring"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
fn_monitor_check_lockfile(){ fn_monitor_check_lockfile(){
# Monitor does not run it lockfile is not found. # Monitor does not run it lockfile is not found.

9
lgsm/functions/command_postdetails.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Strips sensitive information out of Details output # Description: Strips sensitive information out of Details output
commandname="POST-DETAILS" fn_commandname(){
commandaction="Posting details" commandname="POST-DETAILS"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Posting details"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
# Set posttarget to the appropriately-defined post destination. # Set posttarget to the appropriately-defined post destination.

6
lgsm/functions/command_restart.sh

@ -5,9 +5,9 @@
# Description: Restarts the server. # Description: Restarts the server.
fn_commandname(){ fn_commandname(){
commandname="MODS-INSTALL" commandname="MODS-INSTALL"
commandaction="Restarting" commandaction="Restarting"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
} }
fn_commandname fn_commandname

2
lgsm/functions/command_start.sh

@ -5,7 +5,7 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Starts the server. # Description: Starts the server.
fn_commandname(){} fn_commandname(){
commandname="START" commandname="START"
commandaction="Starting" commandaction="Starting"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

9
lgsm/functions/command_stop.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Stops the server. # Description: Stops the server.
commandname="STOP" fn_commandname(){
commandaction="Stopping" commandname="STOP"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Stopping"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
# Attempts graceful shutdown by sending 'CTRL+c'. # Attempts graceful shutdown by sending 'CTRL+c'.
fn_stop_graceful_ctrlc(){ fn_stop_graceful_ctrlc(){

9
lgsm/functions/command_test_alert.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Sends a test alert. # Description: Sends a test alert.
commandname="TEST-ALERT" fn_commandname(){
commandaction="Sending Alert" commandname="TEST-ALERT"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Sending Alert"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
fn_print_dots "${servername}" fn_print_dots "${servername}"
check.sh check.sh

9
lgsm/functions/command_ts3_server_pass.sh

@ -5,9 +5,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Changes TS3 serveradmin password. # Description: Changes TS3 serveradmin password.
commandname="CHANGE-PASSWORD" fn_commandname(){
commandaction="Changing password" commandname="CHANGE-PASSWORD"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Changing password"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
fn_serveradmin_password_prompt(){ fn_serveradmin_password_prompt(){
fn_print_header fn_print_header

2
lgsm/functions/command_update.sh

@ -4,7 +4,7 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Handles updating of servers. # Description: Handles updating of servers.
fn_commandname(){} fn_commandname(){
commandname="UPDATE" commandname="UPDATE"
commandaction="Updating" commandaction="Updating"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

9
lgsm/functions/command_update_linuxgsm.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.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.
commandname="UPDATE-LGSM" fn_commandname(){
commandaction="Updating LinuxGSM" commandname="UPDATE-LGSM"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Updating LinuxGSM"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh

6
lgsm/functions/command_validate.sh

@ -5,9 +5,9 @@
# Description: Runs a server validation. # Description: Runs a server validation.
fn_commandname(){ fn_commandname(){
commandname="VALIDATE" commandname="VALIDATE"
commandaction="Validating" commandaction="Validating"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
} }
fn_commandname fn_commandname

6
lgsm/functions/command_wipe.sh

@ -6,9 +6,9 @@
# Description: Wipes server data, useful after updates for some games like Rust # Description: Wipes server data, useful after updates for some games like Rust
fn_commandname(){ fn_commandname(){
commandname="WIPE" commandname="WIPE"
commandaction="Wiping" commandaction="Wiping"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
} }
fn_commandname fn_commandname

9
lgsm/functions/compress_unreal2_maps.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Compresses unreal maps. # Description: Compresses unreal maps.
commandname="MAP-COMPRESSOR" fn_commandname(){
commandaction="Compressing maps" commandname="MAP-COMPRESSOR"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Compressing maps"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
fn_print_header fn_print_header

9
lgsm/functions/compress_ut99_maps.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Compresses unreal maps. # Description: Compresses unreal maps.
commandname="MAP-COMPRESSOR" fn_commandname(){
commandaction="Compressing maps" commandname="MAP-COMPRESSOR"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" commandaction="Compressing maps"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh check.sh
fn_print_header fn_print_header

Loading…
Cancel
Save