diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php index f1e2a25d7..4f1411c35 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php @@ -296,11 +296,10 @@ class Config extends Singleton $logger->error("failed restoring " . $backup); } } - } else { - // in case there are no backups, restore defaults. - $logger->error(gettext('No valid config.xml found, attempting to restore factory config.')); - $this->restoreBackup('/usr/local/etc/config.xml'); } + // in case there are no backups, restore defaults. + $logger->error(gettext('No valid config.xml found, attempting to restore factory config.')); + $this->restoreBackup('/usr/local/etc/config.xml'); } }