Skip to content

Commit a4ad3a8

Browse files
committed
Add mistakenly removed apache2 stop routine.
1 parent 0764cfa commit a4ad3a8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

install/hst-install-debian.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,9 @@ if [ "$apache" = 'yes' ]; then
12111211
update-rc.d apache2 defaults > /dev/null 2>&1
12121212
systemctl start apache2 >> $LOG
12131213
check_result $? "apache2 start failed"
1214+
else
1215+
update-rc.d apache2 disable > /dev/null 2>&1
1216+
systemctl stop apache2 > /dev/null 2>&1
12141217
fi
12151218

12161219

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ fi
11181118
# Install dhparam.pem
11191119
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
11201120

1121+
11211122
#----------------------------------------------------------#
11221123
# Configure Nginx #
11231124
#----------------------------------------------------------#
@@ -1183,6 +1184,9 @@ if [ "$apache" = 'yes' ]; then
11831184
update-rc.d apache2 defaults > /dev/null 2>&1
11841185
systemctl start apache2 >> $LOG
11851186
check_result $? "apache2 start failed"
1187+
else
1188+
update-rc.d apache2 disable > /dev/null 2>&1
1189+
systemctl stop apache2 > /dev/null 2>&1
11861190
fi
11871191

11881192

0 commit comments

Comments
 (0)