Browse Source

fix: standardise and refactor comment headers (#3198)

pull/3199/head
Daniel Gibbs 4 years ago
parent
commit
852feec520
  1. 18
      lgsm/functions/README.md
  2. 3
      lgsm/functions/alert.sh
  3. 4
      lgsm/functions/alert_discord.sh
  4. 3
      lgsm/functions/alert_email.sh
  5. 3
      lgsm/functions/alert_ifttt.sh
  6. 3
      lgsm/functions/alert_mailgun.sh
  7. 3
      lgsm/functions/alert_pushbullet.sh
  8. 3
      lgsm/functions/alert_pushover.sh
  9. 5
      lgsm/functions/alert_rocketchat.sh
  10. 5
      lgsm/functions/alert_slack.sh
  11. 7
      lgsm/functions/alert_telegram.sh
  12. 3
      lgsm/functions/check.sh
  13. 3
      lgsm/functions/check_config.sh
  14. 3
      lgsm/functions/check_deps.sh
  15. 3
      lgsm/functions/check_executable.sh
  16. 3
      lgsm/functions/check_glibc.sh
  17. 3
      lgsm/functions/check_ip.sh
  18. 3
      lgsm/functions/check_last_update.sh
  19. 3
      lgsm/functions/check_logs.sh
  20. 2
      lgsm/functions/check_permissions.sh
  21. 3
      lgsm/functions/check_root.sh
  22. 4
      lgsm/functions/check_status.sh
  23. 3
      lgsm/functions/check_steamcmd.sh
  24. 3
      lgsm/functions/check_system_dir.sh
  25. 4
      lgsm/functions/check_system_requirements.sh
  26. 6
      lgsm/functions/check_tmuxception.sh
  27. 5
      lgsm/functions/check_version.sh
  28. 4
      lgsm/functions/command_backup.sh
  29. 3
      lgsm/functions/command_check_update.sh
  30. 3
      lgsm/functions/command_console.sh
  31. 3
      lgsm/functions/command_debug.sh
  32. 4
      lgsm/functions/command_details.sh
  33. 3
      lgsm/functions/command_dev_clear_functions.sh
  34. 3
      lgsm/functions/command_dev_debug.sh
  35. 3
      lgsm/functions/command_dev_detect_deps.sh
  36. 3
      lgsm/functions/command_dev_detect_glibc.sh
  37. 3
      lgsm/functions/command_dev_detect_ldd.sh
  38. 3
      lgsm/functions/command_dev_query_raw.sh
  39. 3
      lgsm/functions/command_donate.sh
  40. 4
      lgsm/functions/command_fastdl.sh
  41. 4
      lgsm/functions/command_install.sh
  42. 3
      lgsm/functions/command_install_resources_mta.sh
  43. 4
      lgsm/functions/command_mods_install.sh
  44. 4
      lgsm/functions/command_mods_remove.sh
  45. 4
      lgsm/functions/command_mods_update.sh
  46. 4
      lgsm/functions/command_monitor.sh
  47. 8
      lgsm/functions/command_postdetails.sh
  48. 3
      lgsm/functions/command_restart.sh
  49. 4
      lgsm/functions/command_skeleton.sh
  50. 4
      lgsm/functions/command_start.sh
  51. 4
      lgsm/functions/command_stop.sh
  52. 3
      lgsm/functions/command_test_alert.sh
  53. 4
      lgsm/functions/command_ts3_server_pass.sh
  54. 3
      lgsm/functions/command_update.sh
  55. 3
      lgsm/functions/command_update_linuxgsm.sh
  56. 3
      lgsm/functions/command_validate.sh
  57. 6
      lgsm/functions/command_wipe.sh
  58. 3
      lgsm/functions/compress_unreal2_maps.sh
  59. 3
      lgsm/functions/compress_ut99_maps.sh
  60. 4
      lgsm/functions/core_dl.sh
  61. 3
      lgsm/functions/core_exit.sh
  62. 3
      lgsm/functions/core_functions.sh
  63. 3
      lgsm/functions/core_getopt.sh
  64. 3
      lgsm/functions/core_github.sh
  65. 3
      lgsm/functions/core_legacy.sh
  66. 4
      lgsm/functions/core_logs.sh
  67. 4
      lgsm/functions/core_messages.sh
  68. 3
      lgsm/functions/core_steamcmd.sh
  69. 3
      lgsm/functions/core_trap.sh
  70. 3
      lgsm/functions/fix.sh
  71. 3
      lgsm/functions/fix_ark.sh
  72. 3
      lgsm/functions/fix_arma3.sh
  73. 5
      lgsm/functions/fix_av.sh
  74. 3
      lgsm/functions/fix_bo.sh
  75. 7
      lgsm/functions/fix_cmw.sh
  76. 3
      lgsm/functions/fix_csgo.sh
  77. 3
      lgsm/functions/fix_dst.sh
  78. 3
      lgsm/functions/fix_hw.sh
  79. 3
      lgsm/functions/fix_ins.sh
  80. 3
      lgsm/functions/fix_kf.sh
  81. 3
      lgsm/functions/fix_kf2.sh
  82. 3
      lgsm/functions/fix_mcb.sh
  83. 4
      lgsm/functions/fix_mta.sh
  84. 6
      lgsm/functions/fix_nmrih.sh
  85. 5
      lgsm/functions/fix_onset.sh
  86. 3
      lgsm/functions/fix_ro.sh
  87. 3
      lgsm/functions/fix_rust.sh
  88. 3
      lgsm/functions/fix_rw.sh
  89. 5
      lgsm/functions/fix_samp.sh
  90. 3
      lgsm/functions/fix_sdtd.sh
  91. 3
      lgsm/functions/fix_sfc.sh
  92. 4
      lgsm/functions/fix_sof2.sh
  93. 7
      lgsm/functions/fix_squad.sh
  94. 3
      lgsm/functions/fix_st.sh
  95. 3
      lgsm/functions/fix_steamcmd.sh
  96. 3
      lgsm/functions/fix_terraria.sh
  97. 7
      lgsm/functions/fix_tf2.sh
  98. 3
      lgsm/functions/fix_ts3.sh
  99. 3
      lgsm/functions/fix_unt.sh
  100. 5
      lgsm/functions/fix_ut.sh

18
lgsm/functions/README.md

@ -1,16 +1,16 @@
# Linux Game Server Manager - Functions
# LinuxGSM - Modules
These functions are universal functions that work in all scripts.
These modules are scripts that are called upon by the primary script linuxgsm.sh
## Function Names
Functions have been named to give an idea of what the function does.
## Module Names
Modules have been named to give an idea of what the function does.
* core: Essential functions that will always run first.
* core: Essential modules that will always run first.
* command: Primary command function.
* check: Runs checks that will either halt on or fix an issue.
* dev: development functions.
* dev: development modules.
* fix: Applies a game server specific fix.
* info: retrieves information from a source such as config file or the OS.
* install: Functions related to the installer.
* monitor: Functions related to monitor.
* update: Functions that update the game server.
* install: modules related to the installer.
* monitor: modules related to monitor.
* update: modules that update the game server.

3
lgsm/functions/alert.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert.sh function
# LinuxGSM alert.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Overall function for managing alerts.

4
lgsm/functions/alert_discord.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM alert_discord.sh function
# LinuxGSM alert_discord.sh module
# Author: Daniel Gibbs
# Contributor: faflfama, diamondburned
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Discord alert.

3
lgsm/functions/alert_email.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_email.sh function
# LinuxGSM alert_email.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends email alert.

3
lgsm/functions/alert_ifttt.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_ifttt.sh function
# LinuxGSM alert_ifttt.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends IFTTT alert.

3
lgsm/functions/alert_mailgun.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_mailgun.sh function
# LinuxGSM alert_mailgun.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Mailgun Email alert.

3
lgsm/functions/alert_pushbullet.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_pushbullet.sh function
# LinuxGSM alert_pushbullet.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Pushbullet Messenger alert.

3
lgsm/functions/alert_pushover.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_pushover.sh function
# LinuxGSM alert_pushover.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Pushover alert.

5
lgsm/functions/alert_rocketchat.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_rocketchat.sh function
# Author: Alasdair Haig
# LinuxGSM alert_rocketchat.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Rocketchat alert.

5
lgsm/functions/alert_slack.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM alert_slack.sh function
# Author: Kenneth Lindeof
# LinuxGSM alert_slack.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Slack alert.

7
lgsm/functions/alert_telegram.sh

@ -1,7 +1,8 @@
#!/bin/bash
# LinuxGSM alert_telegram.sh function
# Author: Bennet Becker <[email protected]>
# Website: https://bytegaming.de
# LinuxGSM alert_telegram.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends Telegram Messenger alert.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

3
lgsm/functions/check.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check.sh function
# LinuxGSM check.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Overall function for managing checks.
# Runs checks that will either halt on or fix an issue.

3
lgsm/functions/check_config.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_config.sh function
# LinuxGSM check_config.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if the server config is missing and warns the user if needed.

3
lgsm/functions/check_deps.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_deps.sh function
# LinuxGSM check_deps.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if required dependencies are installed for LinuxGSM.

3
lgsm/functions/check_executable.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_executable.sh function
# LinuxGSM check_executable.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if server executable exists.

3
lgsm/functions/check_glibc.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_glibc.sh function
# LinuxGSM check_glibc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if the server has the correct Glibc version.

3
lgsm/functions/check_ip.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_ip.sh function
# LinuxGSM check_ip.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Automatically identifies the server interface IP.
# If multiple interfaces are detected the user will need to manually set using ip="0.0.0.0".

3
lgsm/functions/check_last_update.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_last_update.sh function
# LinuxGSM check_last_update.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks lock file to see when last update happened.
# Will reboot server if instance not rebooted since update.

3
lgsm/functions/check_logs.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_logs.sh function
# LinuxGSM check_logs.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if log files exist.

2
lgsm/functions/check_permissions.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM check_permissions.sh
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks ownership & permissions of scripts, files and directories.

3
lgsm/functions/check_root.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_root.sh function
# LinuxGSM check_root.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if the user tried to run the script as root.

4
lgsm/functions/check_status.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM check_status.sh function
# LinuxGSM check_status.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks the process status of the server. Either online or offline.

3
lgsm/functions/check_steamcmd.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_steamcmd.sh function
# LinuxGSM check_steamcmd.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if SteamCMD is installed correctly.

3
lgsm/functions/check_system_dir.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM check_system_dir.sh function
# LinuxGSM check_system_dir.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if systemdir/serverfiles is accessible.

4
lgsm/functions/check_system_requirements.sh

@ -1,9 +1,9 @@
#!/bin/bash
# LinuxGSM check_system_requirements.sh
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks RAM requirements
# Description: Checks RAM requirements.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

6
lgsm/functions/check_tmuxception.sh

@ -1,9 +1,9 @@
#!/bin/bash
# LinuxGSM check_config.sh function
# LinuxGSM check_config.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Checks if run from tmux or screen
# Description: Checks if run from tmux or screen.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

5
lgsm/functions/check_version.sh

@ -1,10 +1,13 @@
#!/bin/bash
# LinuxGSM command_version.sh function
# LinuxGSM command_version.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Will run update-lgsm if gameserver.sh and modules version does not match
# this will allow gameserver.sh to update - useful for multi instance servers.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ -n "${modulesversion}" ]&&[ -n "${version}" ]&&[ "${version}" != "${modulesversion}" ]; then
exitbypass=1
echo -e ""

4
lgsm/functions/command_backup.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_backup.sh function
# LinuxGSM command_backup.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Creates a .tar.gz file in the backup directory.

3
lgsm/functions/command_check_update.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_check_update.sh function
# LinuxGSM command_check_update.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Handles updating of servers.

3
lgsm/functions/command_console.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_console.sh function
# LinuxGSM command_console.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Gives access to the server tmux console.

3
lgsm/functions/command_debug.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_debug.sh function
# LinuxGSM command_debug.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Runs the server without tmux and directly from the terminal.

4
lgsm/functions/command_details.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_details.sh function
# LinuxGSM command_details.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Displays server information.

3
lgsm/functions/command_dev_clear_functions.sh

@ -1,6 +1,7 @@
#!/bin/bash
# command_dev_clear_functions.sh function
# LinuxGSM command_dev_clear_functions.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Deletes the contents of the functions dir.

3
lgsm/functions/command_dev_debug.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_dev_debug.sh function
# LinuxGSM command_dev_debug.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Dev only: Enables debugging log to be saved to dev-debug.log.

3
lgsm/functions/command_dev_detect_deps.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_dev_detect_deps.sh function
# LinuxGSM command_dev_detect_deps.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Detects dependencies the server binary requires.

3
lgsm/functions/command_dev_detect_glibc.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_dev_detect_glibc.sh function
# LinuxGSM command_dev_detect_glibc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Automatically detects the version of GLIBC that is required.
# Can check a file or directory recursively.

3
lgsm/functions/command_dev_detect_ldd.sh

@ -1,6 +1,7 @@
#!/bin/bash
# command_dev_detect_ldd.sh function
# LinuxGSM command_dev_detect_ldd.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Automatically detects required deps using ldd.
# Can check a file or directory recursively.

3
lgsm/functions/command_dev_query_raw.sh

@ -1,6 +1,7 @@
#!/bin/bash
# command_dev_query_raw.sh function
# LinuxGSM command_dev_query_raw.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Raw gamedig output of the server.

3
lgsm/functions/command_donate.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_donate.sh function
# LinuxGSM command_donate.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Shows ways to donate.

4
lgsm/functions/command_fastdl.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_fastdl.sh function
# LinuxGSM command_fastdl.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Creates a FastDL directory.

4
lgsm/functions/command_install.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_install.sh function
# LinuxGSM command_install.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Overall function for the installer.

3
lgsm/functions/command_install_resources_mta.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_install_resources_mta.sh function
# LinuxGSM command_install_resources_mta.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Installs the default resources for Multi Theft Auto.

4
lgsm/functions/command_mods_install.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_mods_install.sh function
# LinuxGSM command_mods_install.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: List and installs available mods along with mods_list.sh and mods_core.sh.

4
lgsm/functions/command_mods_remove.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_mods_uninstall.sh function
# LinuxGSM command_mods_uninstall.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Uninstall mods along with mods_list.sh and mods_core.sh.

4
lgsm/functions/command_mods_update.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_mods_update.sh function
# LinuxGSM command_mods_update.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Updates installed mods along with mods_list.sh and mods_core.sh.

4
lgsm/functions/command_monitor.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_monitor.sh function
# LinuxGSM command_monitor.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Monitors server by checking for running processes
# then passes to gamedig and gsquery.

8
lgsm/functions/command_postdetails.sh

@ -1,9 +1,9 @@
#!/bin/bash
# LinuxGSM command_postdetails.sh function
# Author: CedarLUG
# Contributor: CedarLUG
# LinuxGSM command_postdetails.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Strips sensitive information out of Details output
# Description: Strips sensitive information out of Details output.
commandname="POST-DETAILS"
commandaction="Posting details"

3
lgsm/functions/command_restart.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_restart.sh function
# LinuxGSM command_restart.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Restarts the server.

4
lgsm/functions/command_skeleton.sh

@ -1,9 +1,11 @@
#!/bin/bash
# LinuxGSM command_skeleton.sh function
# LinuxGSM command_skeleton.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Creates an copy of a game servers directorys.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Creating skeleton directory"
check.sh

4
lgsm/functions/command_start.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_start.sh function
# LinuxGSM command_start.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Starts the server.

4
lgsm/functions/command_stop.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_stop.sh function
# LinuxGSM command_stop.sh module
# Author: Daniel Gibbs
# Contributors: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Stops the server.

3
lgsm/functions/command_test_alert.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_test_alert.sh function
# LinuxGSM command_test_alert.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Sends a test alert.

4
lgsm/functions/command_ts3_server_pass.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM command_ts3_server_pass.sh function
# LinuxGSM command_ts3_server_pass.sh module
# Author: Daniel Gibbs
# Contributor : UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Changes TS3 serveradmin password.

3
lgsm/functions/command_update.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_update.sh function
# LinuxGSM command_update.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Handles updating of servers.

3
lgsm/functions/command_update_linuxgsm.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_update_linuxgsm.sh function
# LinuxGSM command_update_linuxgsm.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub.

3
lgsm/functions/command_validate.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM command_validate.sh function
# LinuxGSM command_validate.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Runs a server validation.

6
lgsm/functions/command_wipe.sh

@ -1,9 +1,9 @@
#!/bin/bash
# LinuxGSM command_backup.sh function
# LinuxGSM command_backup.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Wipes server data, useful after updates for some games like Rust
# Description: Wipes server data, useful after updates for some games like Rust.
commandname="WIPE"
commandaction="Wiping"

3
lgsm/functions/compress_unreal2_maps.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM compress_unreal2_maps.sh function
# LinuxGSM compress_unreal2_maps.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Compresses unreal maps.

3
lgsm/functions/compress_ut99_maps.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM compress_ut99_maps.sh function
# LinuxGSM compress_ut99_maps.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Compresses unreal maps.

4
lgsm/functions/core_dl.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM core_dl.sh function
# LinuxGSM core_dl.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Deals with all downloads for LinuxGSM.

3
lgsm/functions/core_exit.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_exit.sh function
# LinuxGSM core_exit.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Handles exiting of LinuxGSM by running and reporting an exit code.

3
lgsm/functions/core_functions.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_functions.sh function
# LinuxGSM core_functions.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Defines all functions to allow download and execution of functions using fn_fetch_function.
# This function is called first before any other function. Without this file other functions will not load.

3
lgsm/functions/core_getopt.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_getopt.sh function
# LinuxGSM core_getopt.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: getopt arguments.

3
lgsm/functions/core_github.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_github.sh function
# Author: Christian Birk
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: core function file for updates via github

3
lgsm/functions/core_legacy.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_legacy.sh function
# LinuxGSM core_legacy.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Code for backwards compatability with older versions of LinuxGSM.

4
lgsm/functions/core_logs.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM core_logs.sh function
# LinuxGSM core_logs.sh module
# Author: Daniel Gibbs
# Contributor: UltimateByte
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Acts as a log rotator, removing old logs.

4
lgsm/functions/core_messages.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM core_messages.sh function
# LinuxGSM core_messages.sh module
# Author: Daniel Gibbs
# Contributor: s-eam
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Defines on-screen messages such as [ OK ] and how script logs look.

3
lgsm/functions/core_steamcmd.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_steamcmd.sh function
# LinuxGSM core_steamcmd.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Core functions for SteamCMD

3
lgsm/functions/core_trap.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM core_trap.sh function
# LinuxGSM core_trap.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Handles CTRL-C trap to give an exit code.

3
lgsm/functions/fix.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix.sh function
# LinuxGSM fix.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Overall function for managing fixes.
# Runs functions that will fix an issue.

3
lgsm/functions/fix_ark.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_ark.sh function
# LinuxGSM fix_ark.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with ARK: Survival Evolved.

3
lgsm/functions/fix_arma3.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_arma3.sh function
# LinuxGSM fix_arma3.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves an issue with ARMA3.

5
lgsm/functions/fix_av.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_av.sh function
# Author: Christian Birk
# LinuxGSM fix_av.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves startup issue with Avorion

3
lgsm/functions/fix_bo.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_hw.sh function
# LinuxGSM fix_hw.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Ballistic Overkill.

7
lgsm/functions/fix_cmw.sh

@ -1,9 +1,12 @@
#!/bin/bash
# LinuxGSM fix_cmw.sh function
# Author: Christian Birk
# LinuxGSM fix_cmw.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves the issue of the not starting server on linux
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ ! -f "${executabledir}/steam_appid.txt" ]; then
fixname="steam_appid.txt"
fn_fix_msg_start

3
lgsm/functions/fix_csgo.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_csgo.sh function
# LinuxGSM fix_csgo.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with CS:GO.

3
lgsm/functions/fix_dst.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_dst.sh function
# LinuxGSM fix_dst.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Don't Starve Together.

3
lgsm/functions/fix_hw.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_hw.sh function
# LinuxGSM fix_hw.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Hurtworld.

3
lgsm/functions/fix_ins.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_ins.sh function
# LinuxGSM fix_ins.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Insurgency.

3
lgsm/functions/fix_kf.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_kf.sh function
# LinuxGSM fix_kf.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Killing Floor.

3
lgsm/functions/fix_kf2.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_kf2.sh function
# LinuxGSM fix_kf2.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Killing Floor 2.

3
lgsm/functions/fix_mcb.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_mcb.sh function
# LinuxGSM fix_mcb.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves possible startup issue with Minecraft Bedrock.

4
lgsm/functions/fix_mta.sh

@ -1,7 +1,7 @@
#!/bin/bash
# LinuxGSM fix_mta.sh function
# LinuxGSM fix_mta.sh module
# Author: Daniel Gibbs
# Contributor: ChaosMTA
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Installs the libmysqlclient for database functions on the server.

6
lgsm/functions/fix_nmrih.sh

@ -1,6 +1,8 @@
#!/bin/bash
# LinuxGSM fix_nmrih.sh function
# Author: Denperidge
# LinuxGSM fix_nmrih.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Create symlinks for renamed No More Room In Hell serverfiles.
# Solution from Steam Community post: https://steamcommunity.com/app/224260/discussions/2/1732089092441769414/

5
lgsm/functions/fix_onset.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_onset.sh function
# Author: Frédéric C.
# LinuxGSM fix_onset.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Onset.

3
lgsm/functions/fix_ro.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_ro.sh function
# LinuxGSM fix_ro.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Red Orchestra.

3
lgsm/functions/fix_rust.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_rust.sh function
# LinuxGSM fix_rust.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves startup issue with Rust.

3
lgsm/functions/fix_rw.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_rw.sh function
# LinuxGSM fix_rw.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Rising World.

5
lgsm/functions/fix_samp.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_sfc.sh function
# Author: Christian Birk
# LinuxGSM fix_sfc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves issue that the default rcon password is not changed

3
lgsm/functions/fix_sdtd.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_sdtd.sh function
# LinuxGSM fix_sdtd.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with 7 Days to Die.

3
lgsm/functions/fix_sfc.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_sfc.sh function
# LinuxGSM fix_sfc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Source Forts Classic.

4
lgsm/functions/fix_sof2.sh

@ -1,9 +1,11 @@
#!/bin/bash
# LinuxGSM fix_rust.sh function
# LinuxGSM fix_rust.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Soldier of Fortune 2.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: error while loading shared libraries: libcxa.so.1
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

7
lgsm/functions/fix_squad.sh

@ -1,9 +1,12 @@
#!/bin/bash
# LinuxGSM fix_squad.sh function
# Author: Christian Birk
# LinuxGSM fix_squad.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Squad.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# As the server base dir changed for the game, we need to migrate the default config from the old to the new location
oldservercfg="${serverfiles}/Squad/ServerConfig/${servercfg}"
if [ -f "${oldservercfg}" ]&&[ -f "${servercfgfullpath}" ]; then

3
lgsm/functions/fix_st.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_rust.sh function
# LinuxGSM fix_rust.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves startup issue with Stationeers.

3
lgsm/functions/fix_steamcmd.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_steamcmd.sh function
# LinuxGSM fix_steamcmd.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues related to SteamCMD.

3
lgsm/functions/fix_terraria.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_terraria.sh function
# LinuxGSM fix_terraria.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves an issue with Terraria.

7
lgsm/functions/fix_tf2.sh

@ -1,7 +1,8 @@
#!/bin/bash
# LinuxGSM fix_tf2.sh function
# Author: Vector Sigma
# Website: https://github.com/vectorsigma
# LinuxGSM fix_tf2.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Team Fortress 2.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

3
lgsm/functions/fix_ts3.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_ts3.sh function
# LinuxGSM fix_ts3.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Teamspeak 3.

3
lgsm/functions/fix_unt.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_rust.sh function
# LinuxGSM fix_rust.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves startup issue with Unturned.

5
lgsm/functions/fix_ut.sh

@ -1,6 +1,7 @@
#!/bin/bash
# LinuxGSM fix_ut.sh function
# Author: Alexander Hurd
# LinuxGSM fix_ut.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Resolves various issues with Unreal Tournament.

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save