Skip to content

Commit 092db2a

Browse files
committed
Installer: create apache conf.d folder earlier
1 parent 4271cfe commit 092db2a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

install/hst-install-debian.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,9 @@ fi
11941194

11951195
if [ "$apache" = 'yes' ]; then
11961196
echo "(*) Configuring Apache Web Server..."
1197+
1198+
mkdir -p /etc/apache2/conf.d
1199+
mkdir -p /etc/apache2/conf.d/domains
11971200

11981201
# Copy configuration files
11991202
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
@@ -1223,8 +1226,6 @@ if [ "$apache" = 'yes' ]; then
12231226
fi
12241227
fi
12251228

1226-
mkdir -p /etc/apache2/conf.d
1227-
mkdir -p /etc/apache2/conf.d/domains
12281229
echo "# Powered by hestia" > /etc/apache2/sites-available/default
12291230
echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
12301231
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
@@ -1187,6 +1187,9 @@ fi
11871187
if [ "$apache" = 'yes' ]; then
11881188
echo "(*) Configuring Apache Web Server..."
11891189

1190+
mkdir -p /etc/apache2/conf.d
1191+
mkdir -p /etc/apache2/conf.d/domains
1192+
11901193
# Copy configuration files
11911194
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
11921195
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-available/hestia-status.conf
@@ -1212,8 +1215,6 @@ if [ "$apache" = 'yes' ]; then
12121215
a2enmod ruid2 > /dev/null 2>&1
12131216
fi
12141217

1215-
mkdir -p /etc/apache2/conf.d
1216-
mkdir -p /etc/apache2/conf.d/domains
12171218
echo "# Powered by hestia" > /etc/apache2/sites-available/default
12181219
echo "# Powered by hestia" > /etc/apache2/sites-available/default-ssl
12191220
echo "# Powered by hestia" > /etc/apache2/ports.conf

0 commit comments

Comments
 (0)