Browse Source

Rename function

Kristan Kenney 5 years ago
parent
commit
a22e510475
1 changed files with 2 additions and 1 deletions
  1. 2 1
      func/syshealth.sh

+ 2 - 1
func/syshealth.sh

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