Browse Source

local modulename may be required after all

Daniel Gibbs 10 years ago
parent
commit
b6c117bca6

+ 1 - 1
lgsm/functions/alert_email.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Sends email alert if monitor picks up a failure.
 # Description: Sends email alert if monitor picks up a failure.
 
 
-modulename="Alert"
+local modulename="Alert"
 
 
 
 
 fn_details_email(){
 fn_details_email(){

+ 1 - 1
lgsm/functions/alert_pushbullet.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: alerts using pushbullet.
 # Description: alerts using pushbullet.
 
 
-modulename="Alert"
+local modulename="Alert"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 fn_print_dots "Sending Pushbullet alert"
 fn_print_dots "Sending Pushbullet alert"
 sleep 1
 sleep 1

+ 1 - 1
lgsm/functions/command_backup.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Creates a .tar.gz file in the backup directory.
 # Description: Creates a .tar.gz file in the backup directory.
 
 
-modulename="Backup"
+local modulename="Backup"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_console.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Gives access to the server tmux console.
 # Description: Gives access to the server tmux console.
 
 
-modulename="Console"
+local modulename="Console"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_debug.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Runs the server without tmux. Runs direct from the terminal.
 # Description: Runs the server without tmux. Runs direct from the terminal.
 
 
-modulename="Debug"
+local modulename="Debug"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 # Trap to remove lockfile on quit.
 # Trap to remove lockfile on quit.

+ 1 - 1
lgsm/functions/command_dev_detect_deps.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Detects dependencies the server binary requires.
 # Description: Detects dependencies the server binary requires.
 
 
-modulename="Backup"
+local modulename="Backup"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_fastdl.sh

@@ -7,7 +7,7 @@ lgsm_version="060616"
 
 
 # Description: Creates a FastDL folder
 # Description: Creates a FastDL folder
 
 
-modulename="FastDL"
+local modulename="FastDL"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_install.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Overall function for the installer.
 # Description: Overall function for the installer.
 
 
-modulename="Install"
+local modulename="Install"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_monitor.sh

@@ -7,7 +7,7 @@ lgsm_version="210516"
 # Description: Monitors server by checking for running proccesses
 # Description: Monitors server by checking for running proccesses
 # then passes to monitor_gsquery.sh.
 # then passes to monitor_gsquery.sh.
 
 
-modulename="Monitor"
+local modulename="Monitor"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 fn_monitor_check_lockfile(){
 fn_monitor_check_lockfile(){

+ 1 - 1
lgsm/functions/command_start.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Starts the server.
 # Description: Starts the server.
 
 
-modulename="Starting"
+local modulename="Starting"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 fn_start_teamspeak3(){
 fn_start_teamspeak3(){

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -6,7 +6,7 @@ lgsm_version="050616"
 
 
 # Description: Stops the server.
 # Description: Stops the server.
 
 
-modulename="Stopping"
+local modulename="Stopping"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 # Attempts Graceful of source using rcon 'quit' command.
 # Attempts Graceful of source using rcon 'quit' command.

+ 1 - 1
lgsm/functions/command_test_alert.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Sends a test email alert.
 # Description: Sends a test email alert.
 
 
-modulename="Alert"
+local modulename="Alert"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh

+ 1 - 1
lgsm/functions/command_ts3_server_pass.sh

@@ -7,7 +7,7 @@ lgsm_version="210516"
 
 
 # Description: Changes TS3 serveradmin password
 # Description: Changes TS3 serveradmin password
 
 
-modulename="Change password"
+local modulename="Change password"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 
 

+ 1 - 1
lgsm/functions/command_validate.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Runs a server validation.
 # Description: Runs a server validation.
 
 
-modulename="Validate"
+local modulename="Validate"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 fn_validation(){
 fn_validation(){

+ 1 - 1
lgsm/functions/core_functions.sh

@@ -157,7 +157,7 @@ fn_fetch_function
 }
 }
 
 
 fn_restart(){
 fn_restart(){
-modulename="Restarting"
+local modulename="Restarting"
 info_config.sh
 info_config.sh
 command_stop.sh
 command_stop.sh
 command_start.sh
 command_start.sh

+ 1 - 1
lgsm/functions/install_complete.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 if [ "${gamename}" == "Don't Starve Together" ]; then
 if [ "${gamename}" == "Don't Starve Together" ]; then
   echo ""
   echo ""

+ 1 - 1
lgsm/functions/install_config.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 fn_defaultconfig(){
 fn_defaultconfig(){
 	echo "creating ${servercfg} config file."
 	echo "creating ${servercfg} config file."

+ 1 - 1
lgsm/functions/install_gslt.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Configures GSLT.
 # Description: Configures GSLT.
 
 
-modulename="Install"
+local modulename="Install"
 
 
 echo ""
 echo ""
 echo "Game Server Login Token"
 echo "Game Server Login Token"

+ 1 - 1
lgsm/functions/install_header.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 clear
 clear
 echo "================================="
 echo "================================="

+ 1 - 1
lgsm/functions/install_logs.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 if [ "${checklogs}" != "1" ]; then
 if [ "${checklogs}" != "1" ]; then
 	echo ""
 	echo ""

+ 1 - 1
lgsm/functions/install_retry.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 while true; do
 while true; do
 	read -e -i "y" -p "Retry install? [Y/n]" yn
 	read -e -i "y" -p "Retry install? [Y/n]" yn

+ 1 - 1
lgsm/functions/install_server_dir.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 echo ""
 echo ""
 echo "Server Directory"
 echo "Server Directory"

+ 1 - 1
lgsm/functions/install_server_files.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="270516"
 lgsm_version="270516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 fn_install_server_files(){
 fn_install_server_files(){
 	if [ "${gamename}" == "Unreal Tournament 99" ]; then
 	if [ "${gamename}" == "Unreal Tournament 99" ]; then

+ 1 - 1
lgsm/functions/install_steamcmd.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Downloads SteamCMD on install.
 # Description: Downloads SteamCMD on install.
 
 
-modulename="Install"
+local modulename="Install"
 
 
 echo ""
 echo ""
 echo "Installing SteamCMD"
 echo "Installing SteamCMD"

+ 1 - 1
lgsm/functions/install_ts3.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 info_distro.sh
 info_distro.sh
 # Gets the teamspeak server architecture
 # Gets the teamspeak server architecture

+ 1 - 1
lgsm/functions/install_ts3db.sh

@@ -5,7 +5,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 fn_install_ts3db_mariadb(){
 fn_install_ts3db_mariadb(){
 	echo ""
 	echo ""

+ 1 - 1
lgsm/functions/install_ut2k4_key.sh

@@ -4,7 +4,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 lgsm_version="210516"
 lgsm_version="210516"
 
 
-modulename="Install"
+local modulename="Install"
 
 
 echo ""
 echo ""
 echo "Enter ${gamename} CD Key"
 echo "Enter ${gamename} CD Key"

+ 1 - 1
lgsm/functions/logs.sh

@@ -7,7 +7,7 @@ lgsm_version="210516"
 
 
 # Description: Acts as a log rotater, removing old logs.
 # Description: Acts as a log rotater, removing old logs.
 
 
-modulename="Log Manager"
+local modulename="Log Manager"
 
 
 # Check if logfile variable and file exist, create logfile if it doesn't exist
 # Check if logfile variable and file exist, create logfile if it doesn't exist
 if [ -n "${consolelog}" ]; then
 if [ -n "${consolelog}" ]; then

+ 1 - 1
lgsm/functions/monitor_gsquery.sh

@@ -7,7 +7,7 @@ lgsm_version="210516"
 # Description: uses gsquery.py to query the server port.
 # Description: uses gsquery.py to query the server port.
 # Detects if the server has frozen with the proccess still running.
 # Detects if the server has frozen with the proccess still running.
 
 
-modulename="Monitor"
+local modulename="Monitor"
 
 
 # Forces legecy servers to use gsquery
 # Forces legecy servers to use gsquery
 if [ -z "${gsquery}" ]; then
 if [ -z "${gsquery}" ]; then

+ 1 - 1
lgsm/functions/update_check.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Checks if a server update is available.
 # Description: Checks if a server update is available.
 
 
-modulename="Update"
+local modulename="Update"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 ### SteamCMD Update Checker ###
 ### SteamCMD Update Checker ###

+ 1 - 1
lgsm/functions/update_dl.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 
 # Description: Runs a server update.
 # Description: Runs a server update.
 
 
-modulename="Update"
+local modulename="Update"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 fn_steamcmd_dl(){
 fn_steamcmd_dl(){