File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 114114
115115# Add hestia-event.conf, if the server is running apache2
116116if [ " $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
You can’t perform that action at this time.
0 commit comments