diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-14 19:47:46 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-14 19:47:46 -0400 |
commit | 7eb2a31880b98de047044e9744ea82e5053a279f (patch) | |
tree | 652b0daf92cc8f4725bb8bc73b801994bdd81285 | |
parent | 39faab78617ba0d41d6cd376d104711c40911c56 (diff) | |
download | pfsense-packages-7eb2a31880b98de047044e9744ea82e5053a279f.tar.gz pfsense-packages-7eb2a31880b98de047044e9744ea82e5053a279f.tar.bz2 pfsense-packages-7eb2a31880b98de047044e9744ea82e5053a279f.zip |
Clean-up SID_MODS_PATH when removing pkg and not saving settings.
-rwxr-xr-x | config/snort/snort.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index e8a97866..638825ce 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -51,7 +51,7 @@ $snortver = array(); exec("/usr/local/bin/snort -V 2>&1 |/usr/bin/grep Version | /usr/bin/cut -c20-26", $snortver); /* Used to indicate latest version of this include file has been loaded */ -$pfSense_snort_version = "3.1.3"; +$pfSense_snort_version = "3.1.2"; /* get installed package version for display */ $snort_package_version = "Snort {$config['installedpackages']['package'][get_pkg_id("snort")]['version']}"; @@ -2963,6 +2963,7 @@ function snort_deinstall() { $rcdir = RCFILEPREFIX; $snort_rules_upd_log = RULES_UPD_LOGFILE; $iprep_path = IPREP_PATH; + $sidmods_path = SID_MODS_PATH; log_error(gettext("[Snort] Snort package uninstall in progress...")); @@ -3061,6 +3062,7 @@ function snort_deinstall() { mwexec("/sbin/pfctl -t snort2c -T flush"); mwexec("/bin/rm -rf {$snortlogdir}"); mwexec("/bin/rm -rf {$iprep_path}"); + mwexec("/bin/rm -rf {$sidmods_path}"); log_error(gettext("[Snort] The package has been removed from this system...")); } } |