Browse Source

Create domain host folder during install

Kristan Kenney 7 years ago
parent
commit
29c53554b1
2 changed files with 5 additions and 4 deletions
  1. 2 2
      install/hst-install-debian.sh
  2. 3 2
      install/hst-install-ubuntu.sh

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

@@ -1073,7 +1073,7 @@ if [ "$nginx" = 'yes' ]; then
     cp -f $hestiacp/nginx/phppgadmin.inc /etc/nginx/conf.d/
     cp -f $hestiacp/nginx/webmail.inc /etc/nginx/conf.d/
     cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
-    echo > /etc/nginx/conf.d/hestia.conf
+    mkdir -p /etc/nginx/conf.d/domains
     mkdir -p /var/log/nginx/domains
     if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
         rm -fr $HESTIA/data/templates/web/nginx/*
@@ -1131,7 +1131,7 @@ if [ "$apache" = 'yes' ]; then
     a2enmod actions > /dev/null 2>&1
     a2enmod ruid2 > /dev/null 2>&1
     mkdir -p /etc/apache2/conf.d
-    echo > /etc/apache2/conf.d/hestia.conf
+    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

@@ -1052,7 +1052,7 @@ if [ "$nginx" = 'yes' ]; then
     cp -f $hestiacp/nginx/phppgadmin.inc /etc/nginx/conf.d/
     cp -f $hestiacp/nginx/webmail.inc /etc/nginx/conf.d/
     cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
-    echo > /etc/nginx/conf.d/hestia.conf
+    mkdir -p /etc/nginx/conf.d/domains
     mkdir -p /var/log/nginx/domains
     if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
         rm -fr $HESTIA/data/templates/web/nginx/*
@@ -1110,7 +1110,8 @@ if [ "$apache" = 'yes' ]; then
     a2enmod actions > /dev/null 2>&1
     a2enmod ruid2 > /dev/null 2>&1
     mkdir -p /etc/apache2/conf.d
-    echo > /etc/apache2/conf.d/hestia.conf
+    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