Explorar o código

Executable not found message

UltimateByte %!s(int64=9) %!d(string=hai) anos
pai
achega
858f1f24b8
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      lgsm/functions/check_permissions.sh

+ 6 - 0
lgsm/functions/check_permissions.sh

@@ -123,6 +123,12 @@ fn_check_permissions(){
 				fi
 			fi
 		fi
+	else
+		fn_script_log_warn "Expected executable not found: ${executabledir}/${execname}"
+		fn_print_fail_nl "Executable ${execname} was not found."
+		echo " * Is the server properly installed?"
+		exitcode="1"
+		core_exit.sh
 	fi
 }