diff --git a/functions/check.sh b/functions/check.sh index db143a978..5a5961633 100644 --- a/functions/check.sh +++ b/functions/check.sh @@ -17,17 +17,21 @@ fn_module_compare() { check_root.sh if [ "${module}" != "install" ]; then - check_executable.sh + check_systemdir.sh fi -no_check_logs=( details install map-compressor) -fn_module_compare "${module}" "${no_check_logs[@]}" +no_check_logs=( details install map-compressor ) +fn_module_compare "${cmd}" "${no_check_logs[@]}" if [ $? != 0 ]; then fn_check_logs 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_steamuser fn_check_tmux diff --git a/functions/command_debug b/functions/command_debug index 39399f52c..59f685098 100644 --- a/functions/command_debug +++ b/functions/command_debug @@ -5,10 +5,9 @@ lgsm_version="061115" # Description: Runs the server without tmux. Runs direct from the terminal. - +local cmd="debug" local modulename="Debug" -check_root.sh -fn_check_systemdir +check.sh fn_check_ip fn_check_logs fn_details_distro diff --git a/functions/core_functions.sh b/functions/core_functions.sh index ce5ea996e..7e86c541e 100644 --- a/functions/core_functions.sh +++ b/functions/core_functions.sh @@ -17,12 +17,12 @@ functionfile="${FUNCNAME}" fn_runfunction } -fn_check_ip(){ +check_ip.sh(){ functionfile="${FUNCNAME}" fn_runfunction } -fn_check_logs(){ +check_logs.sh(){ functionfile="${FUNCNAME}" fn_runfunction } @@ -77,7 +77,7 @@ functionfile="${FUNCNAME}" fn_runfunction } -fn_debug(){ +command_debug.sh(){ functionfile="${FUNCNAME}" fn_runfunction }