We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7cc126 commit af3e118Copy full SHA for af3e118
1 file changed
install/upgrade/0.10.0-190430.sh
@@ -288,9 +288,12 @@ if [ -z "$IMAP_SYSTEM" ]; then
288
fi
289
290
# Remove Webalizer and set AWStats as default
291
-echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
292
-apt purge webalizer -y > /dev/null 2>&1
293
-sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
+WEBALIAZER_CHECK=$(cat $HESTIA/conf/hestia.conf | grep webalizer)
+if [ ! -z "$WEBALIZER_CHECK "]; then
+ echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
294
+ apt purge webalizer -y > /dev/null 2>&1
295
+ sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
296
+fi
297
298
# Run sftp jail once
299
$HESTIA/bin/v-add-sys-sftp-jail
0 commit comments