Browse Source

command name

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

2
lgsm/functions/command_console.sh

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

3
lgsm/functions/command_details.sh

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

3
lgsm/functions/command_dev_clear_functions.sh

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

3
lgsm/functions/command_dev_debug.sh

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

3
lgsm/functions/command_dev_detect_deps.sh

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

3
lgsm/functions/command_dev_detect_glibc.sh

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

3
lgsm/functions/command_dev_detect_ldd.sh

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

3
lgsm/functions/command_dev_query_raw.sh

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

3
lgsm/functions/command_donate.sh

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

3
lgsm/functions/command_fastdl.sh

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

3
lgsm/functions/command_install_resources_mta.sh

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

3
lgsm/functions/command_mods_install.sh

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

3
lgsm/functions/command_mods_remove.sh

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

3
lgsm/functions/command_mods_update.sh

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

3
lgsm/functions/command_monitor.sh

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

3
lgsm/functions/command_postdetails.sh

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

2
lgsm/functions/command_start.sh

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

3
lgsm/functions/command_stop.sh

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

3
lgsm/functions/command_test_alert.sh

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

3
lgsm/functions/command_ts3_server_pass.sh

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

2
lgsm/functions/command_update.sh

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

3
lgsm/functions/command_update_linuxgsm.sh

@ -4,9 +4,12 @@
# Website: https://linuxgsm.com
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
fn_commandname(){
commandname="UPDATE-LGSM"
commandaction="Updating LinuxGSM"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
}
fn_commandname
check.sh

3
lgsm/functions/compress_unreal2_maps.sh

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

3
lgsm/functions/compress_ut99_maps.sh

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

Loading…
Cancel
Save