From 5f9c567daf5f1ab98001b6a200f553ccf2364180 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Thu, 9 Oct 2014 19:10:32 -0400 Subject: Consolidate calls to write_config() and improve nanoBSD performance. --- config/snort/snort_migrate_config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/snort/snort_migrate_config.php') diff --git a/config/snort/snort_migrate_config.php b/config/snort/snort_migrate_config.php index e8ba7028..9569c475 100644 --- a/config/snort/snort_migrate_config.php +++ b/config/snort/snort_migrate_config.php @@ -488,11 +488,10 @@ foreach ($rule as &$r) { // Release reference to final array element unset($r); -// Write out the new configuration to disk if we changed anything +// Log a message if we changed anything if ($updated_cfg) { $config['installedpackages']['snortglobal']['snort_config_ver'] = "3.1.3"; log_error("[Snort] Saving configuration settings in new format..."); - write_config("Snort pkg: migrate existing settings to new format as part of package upgrade."); log_error("[Snort] Settings successfully migrated to new configuration format..."); } else -- cgit v1.2.3