|
|
@@ -6,6 +6,10 @@
|
|
|
####### Place additional commands below. #######
|
|
|
#######################################################################################
|
|
|
|
|
|
+# Reload hestia.conf and main functions for this upgrade to ensure new variables are set
|
|
|
+source $HESTIA/conf/hestia.conf
|
|
|
+source $HESTIA/func/main.sh
|
|
|
+
|
|
|
# Set default theme
|
|
|
if [ -z $THEME ]; then
|
|
|
echo "(*) Enabling support for themes..."
|
|
|
@@ -57,7 +61,7 @@ if [ ! -z "$WEBALIZER_CHECK" ]; then
|
|
|
if [ -d "/var/www/webalizer" ]; then
|
|
|
rm -rf /var/www/webalizer
|
|
|
fi
|
|
|
- sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
|
|
|
+ $BIN/v-change-sys-config-value 'STATS_SYSTEM' "awstats"
|
|
|
fi
|
|
|
|
|
|
# Remove old hestia.conf files from Apache & NGINX if they exist
|