Skip to content

Commit 17f5f2c

Browse files
author
Kristan Kenney
committed
Merge branch 'upgrade-script-fixes' into develop
2 parents ca12952 + d560861 commit 17f5f2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

install/upgrade/0.9.8-29.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ chmod 751 $HESTIA/data/templates/web/unassigned/js
101101
chmod 751 $HESTIA/data/templates/web/unassigned/webfonts
102102

103103
# Add unassigned hosts configuration to nginx and apache2
104-
if [ "$WEB_BACKEND" = "php-fpm" ]; then
105-
echo "(!) Unassigned hosts configuration for Apache not necessary on PHP-FPM installations."
106-
elif [ "$WEB_BACKEND" = "apache2" ]; then
104+
if [ "$WEB_SYSTEM" = "apache2" ]; then
107105
echo "(*) Adding unassigned hosts configuration to apache2..."
108106
if [ -f /usr/local/hestia/data/ips/* ]; then
109107
for ip in /usr/local/hestia/data/ips/*; do
@@ -113,7 +111,8 @@ elif [ "$WEB_BACKEND" = "apache2" ]; then
113111
sed -i 's/directIP/'$ipaddr'/g' /etc/apache2/conf.d/$ipaddr.conf
114112
done
115113
fi
116-
elif [ "$PROXY_SYSTEM" = "nginx" ]; then
114+
fi
115+
if [ "$PROXY_SYSTEM" = "nginx" ]; then
117116
echo "(*) Adding unassigned hosts configuration to nginx..."
118117
if [ -f /usr/local/hestia/data/ips/* ]; then
119118
for ip in /usr/local/hestia/data/ips/*; do

0 commit comments

Comments
 (0)