Skip to content

Commit 34504a7

Browse files
committed
Remove webalizer during upgrade.
1 parent e62e41a commit 34504a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/upgrade/versions/1.0.3.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ done
3939
if [ ! -z "$resolver" ]; then
4040
sed -i "s/1.0.0.1 1.1.1.1/$resolver/g" /usr/local/hestia/nginx/conf/nginx.conf
4141
fi
42+
43+
# Remove Webalizer and set AWStats as default
44+
WEBALIZER_CHECK=$(cat $HESTIA/conf/hestia.conf | grep webalizer)
45+
if [ ! -z "$WEBALIZER_CHECK" ]; then
46+
echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
47+
apt purge webalizer -y > /dev/null 2>&1
48+
sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
49+
fi

0 commit comments

Comments
 (0)