Daniel Gibbs 10 лет назад
Родитель
Сommit
0172de852e
3 измененных файлов с 13 добавлено и 10 удалено
  1. 8 4
      functions/check.sh
  2. 2 3
      functions/command_debug
  3. 3 3
      functions/core_functions.sh

+ 8 - 4
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

+ 2 - 3
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

+ 3 - 3
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
 }