Sfoglia il codice sorgente

Fix bug in webalizer detection

Kristan Kenney 6 anni fa
parent
commit
7a0b661790
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      install/upgrade/0.10.0-190430.sh

+ 1 - 1
install/upgrade/0.10.0-190430.sh

@@ -288,7 +288,7 @@ fi
 
 
 # Remove Webalizer and set AWStats as default
 # Remove Webalizer and set AWStats as default
 WEBALIAZER_CHECK=$(cat $HESTIA/conf/hestia.conf | grep webalizer)
 WEBALIAZER_CHECK=$(cat $HESTIA/conf/hestia.conf | grep webalizer)
-if [ ! -z "$WEBALIZER_CHECK " ]; then
+if [ ! -z "$WEBALIZER_CHECK" ]; then
     echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
     echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
     apt purge webalizer -y > /dev/null 2>&1
     apt purge webalizer -y > /dev/null 2>&1
     sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
     sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf