Explorar el Código

Remove hestia.conf in nginx.d directory during upgrade.

Raphael Schneeberger hace 6 años
padre
commit
08e47db582
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      install/upgrade/versions/1.0.3.sh

+ 5 - 0
install/upgrade/versions/1.0.3.sh

@@ -49,4 +49,9 @@ if [ ! -z "$WEBALIZER_CHECK" ]; then
     rm -fr $HESTIA/install/deb/templates/web/webalizer
     rm -fr $HESTIA/install/deb/templates/web/webalizer
     rm -fr /var/www/webalizer
     rm -fr /var/www/webalizer
     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
+fi
+
+# Remove hestia.conf in nginx.d
+if [ -f "/etc/nginx/conf.d/hestia.conf" ]; then
+    rm -f /etc/nginx/conf.d/hestia.conf
 fi
 fi