Просмотр исходного кода

Installer: create apache conf.d folder earlier

Robert Zollner 5 лет назад
Родитель
Сommit
092db2a338
2 измененных файлов с 6 добавлено и 4 удалено
  1. 3 2
      install/hst-install-debian.sh
  2. 3 2
      install/hst-install-ubuntu.sh

+ 3 - 2
install/hst-install-debian.sh

@@ -1194,6 +1194,9 @@ fi
 
 if [ "$apache" = 'yes' ]; then
     echo "(*) Configuring Apache Web Server..."
+
+    mkdir -p /etc/apache2/conf.d
+    mkdir -p /etc/apache2/conf.d/domains
     
     # Copy configuration files
     cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
@@ -1223,8 +1226,6 @@ if [ "$apache" = 'yes' ]; then
         fi
     fi
 
-    mkdir -p /etc/apache2/conf.d
-    mkdir -p /etc/apache2/conf.d/domains
     echo "# Powered by hestia" > /etc/apache2/sites-available/default
     echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
     echo "# Powered by hestia" > /etc/apache2/ports.conf

+ 3 - 2
install/hst-install-ubuntu.sh

@@ -1187,6 +1187,9 @@ fi
 if [ "$apache" = 'yes' ]; then
     echo "(*) Configuring Apache Web Server..."
 
+    mkdir -p /etc/apache2/conf.d
+    mkdir -p /etc/apache2/conf.d/domains
+
     # Copy configuration files
     cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
     cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-available/hestia-status.conf
@@ -1212,8 +1215,6 @@ if [ "$apache" = 'yes' ]; then
         a2enmod ruid2 > /dev/null 2>&1
     fi
 
-    mkdir -p /etc/apache2/conf.d
-    mkdir -p /etc/apache2/conf.d/domains
     echo "# Powered by hestia" > /etc/apache2/sites-available/default
     echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
     echo "# Powered by hestia" > /etc/apache2/ports.conf