File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -288,9 +288,12 @@ if [ -z "$IMAP_SYSTEM" ]; then
288288fi
289289
290290# 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
291+ WEBALIAZER_CHECK=$( cat $HESTIA /conf/hestia.conf | grep webalizer)
292+ if [ ! -z " $WEBALIZER_CHECK " ]; then
293+ 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
294297
295298# Run sftp jail once
296299$HESTIA /bin/v-add-sys-sftp-jail
You can’t perform that action at this time.
0 commit comments