Skip to content

Commit 4322a4e

Browse files
committed
Installer: Abort instalation when no webservers are selected
1 parent 58e0015 commit 4322a4e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

install/hst-install-debian.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
289289
check_result 1 "User admin exists"
290290
fi
291291

292+
# Check if a default webserver was set
293+
if [ $apache = 'no' ] && [ $nginx = 'no' ]; then
294+
check_result 1 "No web server was selected"
295+
fi
296+
292297
# Clear the screen once launch permissions have been verified
293298
clear
294299

install/hst-install-ubuntu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
263263
check_result 1 "User admin exists"
264264
fi
265265

266+
# Check if a default webserver was set
267+
if [ $apache = 'no' ] && [ $nginx = 'no' ]; then
268+
check_result 1 "No web server was selected"
269+
fi
270+
266271
# Clear the screen once launch permissions have been verified
267272
clear
268273

0 commit comments

Comments
 (0)