Преглед на файлове

Installer: Abort instalation when no webservers are selected

Robert Zollner преди 6 години
родител
ревизия
4322a4eb93
променени са 2 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 5 0
      install/hst-install-debian.sh
  2. 5 0
      install/hst-install-ubuntu.sh

+ 5 - 0
install/hst-install-debian.sh

@@ -289,6 +289,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
     check_result 1 "User admin exists"
 fi
 
+# Check if a default webserver was set
+if [ $apache = 'no' ] && [ $nginx = 'no' ]; then
+    check_result 1 "No web server was selected"
+fi
+
 # Clear the screen once launch permissions have been verified
 clear
 

+ 5 - 0
install/hst-install-ubuntu.sh

@@ -263,6 +263,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
     check_result 1 "User admin exists"
 fi
 
+# Check if a default webserver was set
+if [ $apache = 'no' ] && [ $nginx = 'no' ]; then
+    check_result 1 "No web server was selected"
+fi
+
 # Clear the screen once launch permissions have been verified
 clear