Skip to content

Commit 19946b6

Browse files
committed
Move apache hestia config to conf-available from mods-enabled
1 parent b049188 commit 19946b6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,14 +1198,15 @@ if [ "$apache" = 'yes' ]; then
11981198
# Copy configuration files
11991199
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
12001200
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
1201-
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
1201+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf-available/
12021202
cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
12031203

12041204
# Enable needed modules
12051205
a2enmod rewrite > /dev/null 2>&1
12061206
a2enmod suexec > /dev/null 2>&1
12071207
a2enmod ssl > /dev/null 2>&1
12081208
a2enmod actions > /dev/null 2>&1
1209+
a2enconf --quiet hestia-event
12091210

12101211
if [ "$phpfpm" = 'yes' ]; then
12111212
# Disable prefork and php, enable event

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,14 +1190,15 @@ if [ "$apache" = 'yes' ]; then
11901190
# Copy configuration files
11911191
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
11921192
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
1193-
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
1193+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf-available/
11941194
cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
11951195

11961196
# Enable needed modules
11971197
a2enmod rewrite > /dev/null 2>&1
11981198
a2enmod suexec > /dev/null 2>&1
11991199
a2enmod ssl > /dev/null 2>&1
12001200
a2enmod actions > /dev/null 2>&1
1201+
a2enconf --quiet hestia-event
12011202

12021203
# Enable mod_ruid/mpm_itk or mpm_event
12031204
if [ "$phpfpm" = 'yes' ]; then

install/upgrade/versions/latest.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ fi
7474

7575
# Add hestia-event.conf, if the server is running apache2
7676
if [ "$WEB_SYSTEM" = "apache2" ]; then
77-
if [ ! -e "/etc/apache2/mods-enabled/hestia-event.conf" ]; then
78-
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
77+
if [ ! -e "/etc/apache2/conf-enabled/hestia-event.conf" ]; then
78+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf-available/
79+
rm --force /etc/apache2/mods-enabled/hestia-event.conf # cleanup
80+
a2enconf --quiet hestia-event
7981
fi
8082
fi
8183

0 commit comments

Comments
 (0)