Skip to content

Commit f7aba9a

Browse files
author
Kristan Kenney
committed
Ensure old configuration files are removed during upgrade
1 parent 873d20c commit f7aba9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install/upgrade/versions/1.0.3.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ if [ ! -z "$WEBALIZER_CHECK" ]; then
5151
sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
5252
fi
5353

54-
# Remove hestia.conf in nginx.d
54+
# Remove old hestia.conf files from Apache & NGINX if they exist
5555
if [ -f "/etc/nginx/conf.d/hestia.conf" ]; then
56+
echo "(*) Removing old Apache configuration file..."
57+
rm -f /etc/apache2/conf.d/hestia.conf
58+
fi
59+
if [ -f "/etc/nginx/conf.d/hestia.conf" ]; then
60+
echo "(*) Removing old NGINX configuration file..."
5661
rm -f /etc/nginx/conf.d/hestia.conf
5762
fi

0 commit comments

Comments
 (0)