Просмотр исходного кода

removed local commandaction="Checking"

Daniel Gibbs 10 лет назад
Родитель
Сommit
6a3193194d

+ 0 - 1
lgsm/functions/check.sh

@@ -7,7 +7,6 @@
 # Runs checks that will either halt on or fix an issue.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 # Cannot have selfname as breaks the function.
 #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 

+ 0 - 1
lgsm/functions/check_config.sh

@@ -5,7 +5,6 @@
 # Description: If server config missing warn user.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ ! -e "${servercfgfullpath}" ]; then

+ 0 - 1
lgsm/functions/check_deps.sh

@@ -5,7 +5,6 @@
 # Description: Checks that the requires dependencies are installed for LGSM.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 # Cannot have selfname as breaks the function.
 #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 

+ 0 - 1
lgsm/functions/check_glibc.sh

@@ -5,7 +5,6 @@
 # Description: Checks if server has correct glibc or has a fix available.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 # Cannot have selfname as breaks the function.
 #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 

+ 0 - 1
lgsm/functions/check_ip.sh

@@ -6,7 +6,6 @@
 # If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0".
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "${gamename}" != "Teamspeak 3" ]; then

+ 0 - 1
lgsm/functions/check_logs.sh

@@ -5,7 +5,6 @@
 # Description: Checks that log files exist on server start
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Create dir's for the script and console logs

+ 0 - 1
lgsm/functions/check_permissions.sh

@@ -6,7 +6,6 @@
 # Description: Checks script, files and folders ownership and permissions.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 # Cannot have selfname as breaks the function.
 #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 

+ 0 - 1
lgsm/functions/check_root.sh

@@ -4,7 +4,6 @@
 # Website: https://gameservermanagers.com
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ $(whoami) = "root" ]; then

+ 0 - 1
lgsm/functions/check_status.sh

@@ -5,7 +5,6 @@
 # Description: Checks the proccess status of the server. Either online or offline.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "${gamename}" == "Teamspeak 3" ]; then

+ 0 - 1
lgsm/functions/check_steamcmd.sh

@@ -5,7 +5,6 @@
 # Description: Checks SteamCMD is installed and correct.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 # Cannot have selfname as breaks the function.
 #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 

+ 0 - 1
lgsm/functions/check_system_dir.sh

@@ -4,7 +4,6 @@
 # Website: https://gameservermanagers.com
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ ! -d "${systemdir}" ]; then

+ 0 - 1
lgsm/functions/check_tmux.sh

@@ -5,7 +5,6 @@
 # Description: Checks if tmux is installed as too many users do not RTFM or know how to use Google.
 
 local commandnane="CHECK"
-local commandaction="Checking"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "$(command -v tmux)" ]||[ "$(which tmux >/dev/null 2>&1)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then

+ 4 - 2
lgsm/functions/command_monitor.sh

@@ -80,11 +80,13 @@ fn_monitor_tmux(){
 	fi
 }
 
+fn_print_dots "${servername}"
+sleep 1
 check.sh
 logs.sh
 info_config.sh
-fn_print_dots "${servername}"
-sleep 1
+
+
 fn_monitor_check_lockfile
 fn_monitor_check_update
 fn_monitor_msg_checking

+ 1 - 0
lgsm/functions/command_test_alert.sh

@@ -9,6 +9,7 @@ local commandaction="Alert"
 local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_print_dots "${servername}"
+sleep 1
 check.sh
 info_config.sh
 alert="test"