Sfoglia il codice sorgente

Executable not found message

UltimateByte 9 anni fa
parent
commit
858f1f24b8
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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
 			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
 	fi
 }
 }