Kristan Kenney 5 лет назад
Родитель
Сommit
a22e510475
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      func/syshealth.sh

+ 2 - 1
func/syshealth.sh

@@ -147,10 +147,11 @@ function syshealth_repair_web_config() {
     done
     done
 }
 }
 
 
-function syshealth_restore_system_installed_defaults() {
+function syshealth_restore_system_installed_config() {
     if [ -f "$HESTIA/conf/defaults/hestia.conf" ]; then
     if [ -f "$HESTIA/conf/defaults/hestia.conf" ]; then
         mv $HESTIA/conf/hestia.conf $HESTIA/conf/hestia.conf.old
         mv $HESTIA/conf/hestia.conf $HESTIA/conf/hestia.conf.old
         cp $HESTIA/conf/defaults/hestia.conf $HESTIA/conf/hestia.conf
         cp $HESTIA/conf/defaults/hestia.conf $HESTIA/conf/hestia.conf
+        rm -f $HESTIA/conf/hestia.conf.old
     else
     else
         echo "ERROR: System default configuration file not found, aborting."
         echo "ERROR: System default configuration file not found, aborting."
         exit 1
         exit 1