summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7d9730e..5350fd8 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -514,6 +514,7 @@ function update_progress_bar($percent) {
*/
function resync_all_packages_config() {
log_error("Resyncing configuration for all packages.");
+ if(!$config['installedpackages']['package']) return;
foreach($config['installedpackages']['package'] as $package) {
if(file_exists("/usr/local/pkg/" . $package['configurationfile'])) {
$pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "pfsensepkgs");
OpenPOWER on IntegriCloud