Ver Fonte

Upgrade: Move apache hestia-event config to conf.d

Robert Zollner há 5 anos atrás
pai
commit
191e534822
1 ficheiros alterados com 8 adições e 4 exclusões
  1. 8 4
      install/upgrade/versions/latest.sh

+ 8 - 4
install/upgrade/versions/latest.sh

@@ -114,10 +114,14 @@ fi
 
 # Add hestia-event.conf, if the server is running apache2
 if [ "$WEB_SYSTEM" = "apache2" ]; then
-    if [ ! -e "/etc/apache2/conf-enabled/hestia-event.conf" ]; then
-        cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf-available/
-        rm --force /etc/apache2/mods-enabled/hestia-event.conf # cleanup
-        a2enconf --quiet hestia-event
+    # Cleanup
+    rm --force /etc/apache2/mods-available/hestia-event.conf
+    rm --force /etc/apache2/mods-enabled/hestia-event.conf
+    rm --force /etc/apache2/conf-available/hestia-event.conf
+    rm --force /etc/apache2/conf-enabled/hestia-event.conf
+
+    if [ ! -e "/etc/apache2/conf.d/hestia-event.conf" ]; then
+        cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf.d/
     fi
 
     # Move apache mod_status config to /mods-available and rename it to prevent losing changes on upgrade