Browse Source

changed more functions

pull/584/head
Daniel Gibbs 9 years ago
parent
commit
0172de852e
  1. 12
      functions/check.sh
  2. 5
      functions/command_debug
  3. 6
      functions/core_functions.sh

12
functions/check.sh

@ -17,17 +17,21 @@ fn_module_compare() {
check_root.sh check_root.sh
if [ "${module}" != "install" ]; then if [ "${module}" != "install" ]; then
check_executable.sh check_systemdir.sh
fi fi
no_check_logs=( details install map-compressor) no_check_logs=( details install map-compressor )
fn_module_compare "${module}" "${no_check_logs[@]}" fn_module_compare "${cmd}" "${no_check_logs[@]}"
if [ $? != 0 ]; then if [ $? != 0 ]; then
fn_check_logs fn_check_logs
fi fi
check_ip=( debug )
fn_module_compare "${cmd}" "${no_check_logs[@]}"
if [ $? != 0 ]; then
check_ip.sh
fi
fn_check_ip
fn_check_steamcmd fn_check_steamcmd
fn_check_steamuser fn_check_steamuser
fn_check_tmux fn_check_tmux

5
functions/command_debug

@ -5,10 +5,9 @@
lgsm_version="061115" lgsm_version="061115"
# Description: Runs the server without tmux. Runs direct from the terminal. # Description: Runs the server without tmux. Runs direct from the terminal.
local cmd="debug"
local modulename="Debug" local modulename="Debug"
check_root.sh check.sh
fn_check_systemdir
fn_check_ip fn_check_ip
fn_check_logs fn_check_logs
fn_details_distro fn_details_distro

6
functions/core_functions.sh

@ -17,12 +17,12 @@ functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }
fn_check_ip(){ check_ip.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }
fn_check_logs(){ check_logs.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }
@ -77,7 +77,7 @@ functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }
fn_debug(){ command_debug.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }

Loading…
Cancel
Save