Skip to content

Commit 29c5355

Browse files
author
Kristan Kenney
committed
Create domain host folder during install
1 parent 1ad945f commit 29c5355

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ if [ "$nginx" = 'yes' ]; then
10731073
cp -f $hestiacp/nginx/phppgadmin.inc /etc/nginx/conf.d/
10741074
cp -f $hestiacp/nginx/webmail.inc /etc/nginx/conf.d/
10751075
cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
1076-
echo > /etc/nginx/conf.d/hestia.conf
1076+
mkdir -p /etc/nginx/conf.d/domains
10771077
mkdir -p /var/log/nginx/domains
10781078
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
10791079
rm -fr $HESTIA/data/templates/web/nginx/*
@@ -1131,7 +1131,7 @@ if [ "$apache" = 'yes' ]; then
11311131
a2enmod actions > /dev/null 2>&1
11321132
a2enmod ruid2 > /dev/null 2>&1
11331133
mkdir -p /etc/apache2/conf.d
1134-
echo > /etc/apache2/conf.d/hestia.conf
1134+
mkdir -p /etc/apache2/conf.d/domains
11351135
echo "# Powered by hestia" > /etc/apache2/sites-available/default
11361136
echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
11371137
echo "# Powered by hestia" > /etc/apache2/ports.conf

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ if [ "$nginx" = 'yes' ]; then
10521052
cp -f $hestiacp/nginx/phppgadmin.inc /etc/nginx/conf.d/
10531053
cp -f $hestiacp/nginx/webmail.inc /etc/nginx/conf.d/
10541054
cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
1055-
echo > /etc/nginx/conf.d/hestia.conf
1055+
mkdir -p /etc/nginx/conf.d/domains
10561056
mkdir -p /var/log/nginx/domains
10571057
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
10581058
rm -fr $HESTIA/data/templates/web/nginx/*
@@ -1110,7 +1110,8 @@ if [ "$apache" = 'yes' ]; then
11101110
a2enmod actions > /dev/null 2>&1
11111111
a2enmod ruid2 > /dev/null 2>&1
11121112
mkdir -p /etc/apache2/conf.d
1113-
echo > /etc/apache2/conf.d/hestia.conf
1113+
mkdir -p /etc/apache2/conf.d
1114+
mkdir -p /etc/apache2/conf.d/domains
11141115
echo "# Powered by hestia" > /etc/apache2/sites-available/default
11151116
echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
11161117
echo "# Powered by hestia" > /etc/apache2/ports.conf

0 commit comments

Comments
 (0)