瀏覽代碼

Executable not found message

UltimateByte 9 年之前
父節點
當前提交
858f1f24b8
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
 }