diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 23:07:37 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 23:07:37 -0400 |
commit | e5acccc4b7f777d2f5ca12210b76a4db87b1d305 (patch) | |
tree | d85c78e5d1238bdf9ffc3b6f352a594e568238de /config/suricata | |
parent | 850c160b28720cae3e94c58d5a4d137a11076c35 (diff) | |
download | pfsense-packages-e5acccc4b7f777d2f5ca12210b76a4db87b1d305.tar.gz pfsense-packages-e5acccc4b7f777d2f5ca12210b76a4db87b1d305.tar.bz2 pfsense-packages-e5acccc4b7f777d2f5ca12210b76a4db87b1d305.zip |
Remove hard-coding of pkg version and grab it realtime instead.
Diffstat (limited to 'config/suricata')
-rw-r--r-- | config/suricata/suricata_post_install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php index 33b3e632..ea1d7b0a 100644 --- a/config/suricata/suricata_post_install.php +++ b/config/suricata/suricata_post_install.php @@ -285,8 +285,8 @@ if (empty($config['installedpackages']['suricata']['config'][0]['forcekeepsettin conf_mount_ro(); // Update Suricata package version in configuration -$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "2.1.5"; -write_config("Suricata pkg v2.1.5: post-install configuration saved."); +$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = $config['installedpackages']['package'][get_pkg_id("suricata")]['version']; +write_config("Suricata pkg v{$config['installedpackages']['package'][get_pkg_id("suricata")]['version']}: post-install configuration saved."); // Done with post-install, so clear flag unset($g['suricata_postinstall']); |