Skip to content

Commit 191e534

Browse files
committed
Upgrade: Move apache hestia-event config to conf.d
1 parent 292458b commit 191e534

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

install/upgrade/versions/latest.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ fi
114114

115115
# Add hestia-event.conf, if the server is running apache2
116116
if [ "$WEB_SYSTEM" = "apache2" ]; then
117-
if [ ! -e "/etc/apache2/conf-enabled/hestia-event.conf" ]; then
118-
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf-available/
119-
rm --force /etc/apache2/mods-enabled/hestia-event.conf # cleanup
120-
a2enconf --quiet hestia-event
117+
# Cleanup
118+
rm --force /etc/apache2/mods-available/hestia-event.conf
119+
rm --force /etc/apache2/mods-enabled/hestia-event.conf
120+
rm --force /etc/apache2/conf-available/hestia-event.conf
121+
rm --force /etc/apache2/conf-enabled/hestia-event.conf
122+
123+
if [ ! -e "/etc/apache2/conf.d/hestia-event.conf" ]; then
124+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf.d/
121125
fi
122126

123127
# Move apache mod_status config to /mods-available and rename it to prevent losing changes on upgrade

0 commit comments

Comments
 (0)