aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-08 22:56:52 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-08 22:56:52 -0400
commitc13c641f7ae95d18df8e0bcdfaa67af2d1c2deb2 (patch)
tree2afbcc9e66659158f7a826943683cb1a145d8f98 /config
parent6d1e6c31c7fcd7bb5d5dd48ff115ba8b09849164 (diff)
downloadpfsense-packages-c13c641f7ae95d18df8e0bcdfaa67af2d1c2deb2.tar.gz
pfsense-packages-c13c641f7ae95d18df8e0bcdfaa67af2d1c2deb2.tar.bz2
pfsense-packages-c13c641f7ae95d18df8e0bcdfaa67af2d1c2deb2.zip
Move call to write_config() so as not to invalidate the loop iterator.
Diffstat (limited to 'config')
-rw-r--r--config/suricata/suricata_post_install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php
index 55a43f35..1d338a55 100644
--- a/config/suricata/suricata_post_install.php
+++ b/config/suricata/suricata_post_install.php
@@ -144,11 +144,11 @@ if ($config['installedpackages']['suricata']['config'][0]['forcekeepsettings'] =
$new_uuid = suricata_generate_id();
exec("mv -f {$suricatalogdir}suricata_{$if_real}" . $old_uuid . " {$suricatalogdir}suricata_{$if_real}" . $new_uuid);
$suricatacfg['uuid'] = $new_uuid;
- write_config("Suricata pkg: updated UUID for interface " . convert_friendly_interface_to_friendly_descr($suricatacfg['interface']) . ".");
$uuids[$new_uuid] = $if_real;
log_error(gettext("[Suricata] updated UUID for interface " . convert_friendly_interface_to_friendly_descr($suricatacfg['interface']) . " from {$old_uuid} to {$new_uuid}."));
}
}
+ write_config("Suricata pkg: updated interface UUIDs to eliminated duplicates.");
unset($uuids, $rulesets);
}
/****************************************************************/