mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix: standardise and refactor comment headers (#3198)
This commit is contained in:
parent
a194f3c8de
commit
852feec520
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
# LinuxGSM alert_telegram.sh function
|
||||
# Author: Bennet Becker <bennet@becker-dd.de>
|
||||
# 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]}")")"
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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".
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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]}")")"
|
||||
|
||||
|
@ -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]}")")"
|
||||
|
||||
|
@ -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 ""
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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/
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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}"
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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]}")")"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 have changed in this diff Show More
Loading…
Reference in New Issue
Block a user