diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-10-10 16:01:29 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-12-15 12:11:59 -0500 |
commit | c2b4378b69a890cc479e179bf5dac0e61c7f7692 (patch) | |
tree | ce815a85acf4bcf8ec4174c3fa37a534a7e9d274 /config/suricata/suricata_migrate_config.php | |
parent | a5fe716ec4129a1908b7c51fd778ecf9e26327f3 (diff) | |
download | pfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.tar.gz pfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.tar.bz2 pfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.zip |
Wrap calls to sync_suricata_package_config() with conf_mount_rw().
Diffstat (limited to 'config/suricata/suricata_migrate_config.php')
-rw-r--r-- | config/suricata/suricata_migrate_config.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/config/suricata/suricata_migrate_config.php b/config/suricata/suricata_migrate_config.php index 3d04ffa4..d5f56a62 100644 --- a/config/suricata/suricata_migrate_config.php +++ b/config/suricata/suricata_migrate_config.php @@ -343,12 +343,8 @@ foreach ($rule as &$r) { unset($r); // Write out the new configuration to disk if we changed anything -if ($updated_cfg) { - $config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "2.0.3"; - log_error("[Suricata] Saving configuration settings in new format..."); - write_config("Suricata pkg: migrate existing settings to new format during package upgrade."); +if ($updated_cfg) log_error("[Suricata] Settings successfully migrated to new configuration format..."); -} else log_error("[Suricata] Configuration version is current..."); |