Browse Source

check_systemdir

pull/584/head
Daniel Gibbs 9 years ago
parent
commit
95602338a3
  1. 2
      functions/check_systemdir.sh
  2. 2
      functions/command_backup.sh
  3. 2
      functions/command_console.sh
  4. 2
      functions/command_debug.sh
  5. 4
      functions/command_monitor.sh
  6. 4
      functions/command_start.sh
  7. 4
      functions/command_stop.sh
  8. 2
      functions/command_validate.sh
  9. 2
      functions/dev_detect_deps.sh
  10. 2
      functions/email_test.sh
  11. 4
      functions/update_dl.sh

2
functions/check_systemdir.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LGSM fn_check_systemdir function
# LGSM check_systemdir.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="061115"

2
functions/command_backup.sh

@ -8,7 +8,7 @@ lgsm_version="201215"
local modulename="Backup"
check_root.sh
fn_check_systemdir
check_systemdir.sh
backupname="${servicename}-$(date '+%Y-%m-%d-%H%M%S')"
echo ""
echo "${gamename} Backup"

2
functions/command_console.sh

@ -8,7 +8,7 @@ lgsm_version="061115"
local modulename="Console"
check_root.sh
fn_check_systemdir
check_systemdir.sh
echo ""
echo "${gamename} Console"
echo "============================"

2
functions/command_debug.sh

@ -8,7 +8,7 @@ lgsm_version="061115"
local modulename="Debug"
check_root.sh
fn_check_systemdir
check_systemdir.sh
check_ip.sh
check_logs.sh
info_distro.sh

4
functions/command_monitor.sh

@ -11,7 +11,7 @@ local modulename="Monitor"
command_monitor.sh_teamspeak3(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
logs.sh
fn_printdots "${servername}"
fn_scriptlog "${servername}"
@ -55,7 +55,7 @@ fn_restart
command_monitor.sh_tmux(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
check_ip.sh
info_config.sh
fn_printdots "${servername}"

4
functions/command_start.sh

@ -10,7 +10,7 @@ local modulename="Starting"
command_start.sh_teamspeak3(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
check_logs.sh
check_ts3status.sh
@ -74,7 +74,7 @@ echo -en "\n"
command_start.sh_tmux(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
check_ip.sh
check_logs.sh
if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then

4
functions/command_stop.sh

@ -30,7 +30,7 @@ sdtd_telnet(){
command_stop.sh_teamspeak3(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
fn_printdots "${servername}"
fn_scriptlog "${servername}"
sleep 1
@ -51,7 +51,7 @@ echo -en "\n"
command_stop.sh_tmux(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
info_config.sh
fn_printdots "${servername}"
fn_scriptlog "${servername}"

2
functions/command_validate.sh

@ -43,7 +43,7 @@ fn_scriptlog "Checking complete"
}
fn_check_root
fn_check_systemdir
check_systemdir.sh
tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
if [ "${tmuxwc}" -eq 1 ]; then
command_stop.sh

2
functions/dev_detect_deps.sh

@ -8,7 +8,7 @@ lgsm_version="201215"
local modulename="Backup"
check_root.sh
fn_check_systemdir
check_systemdir.sh
cd "${executabledir}"
if [ "${executable}" == "./hlds_run" ]; then
executable=hlds_linux

2
functions/email_test.sh

@ -8,7 +8,7 @@ lgsm_version="061115"
local modulename="Email"
check_root.sh
fn_check_systemdir
check_systemdir.sh
info_config.sh
if [ "${emailnotification}" = "on" ]; then
fn_scriptlog "Sending test notification"

4
functions/update_dl.sh

@ -10,7 +10,7 @@ local modulename="Update"
fn_steamcmd_dl(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
info_config.sh
fn_printdots "Updating ${servername}"
sleep 1
@ -40,7 +40,7 @@ fi
fn_teamspeak3_dl(){
check_root.sh
fn_check_systemdir
check_systemdir.sh
info_config.sh
fn_printdots "Updating ${servername}"
sleep 1

Loading…
Cancel
Save