Browse Source

Installer: create apache conf.d folder earlier

Ernesto Nicolás Carrea 5 years ago
parent
commit
f74cbc5c11
1 changed files with 2 additions and 1 deletions
  1. 2 1
      install/hst-install-centos.sh

+ 2 - 1
install/hst-install-centos.sh

@@ -1088,6 +1088,8 @@ fi
 if [ "$apache" = 'yes'  ]; then
     echo "(*) Configuring Apache Web Server..."
 
+    mkdir -p /etc/httpd/conf.d/domains
+
     # Copy configuration files
     cp -f $HESTIA_INSTALL_DIR/httpd/httpd.conf /etc/httpd/conf/
     cp -f $HESTIA_INSTALL_DIR/httpd/status.conf /etc/httpd/conf.d/
@@ -1125,7 +1127,6 @@ if [ "$apache" = 'yes'  ]; then
 
     sed -i "/LoadModule proxy_http2_module/ s/^/#/" /etc/httpd/conf.modules.d/*.conf
 
-    mkdir -p /etc/httpd/conf.d/domains
     echo "# Powered by hestia" > /etc/httpd/conf.d/welcome.conf
 
     mkdir -p /var/log/httpd/domains