aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_uninstall.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-05-02 07:09:34 +0000
committerErmal <eri@pfsense.org>2014-05-02 07:09:34 +0000
commit8aec99c2678dc2c7bd82ff068733ccc8459a779b (patch)
treec0a070c35362edcb09abd1e821bb71d9a968b93f /config/suricata/suricata_uninstall.php
parentbb88eed5e00ea1064d61020e59349b83f4c633d1 (diff)
parent7bb99d97c33021c4e4cacb0b8dd739be5933c61f (diff)
downloadpfsense-packages-8aec99c2678dc2c7bd82ff068733ccc8459a779b.tar.gz
pfsense-packages-8aec99c2678dc2c7bd82ff068733ccc8459a779b.tar.bz2
pfsense-packages-8aec99c2678dc2c7bd82ff068733ccc8459a779b.zip
Merge pull request #654 from bmeeks8/suricata-1.0.1
Diffstat (limited to 'config/suricata/suricata_uninstall.php')
-rw-r--r--config/suricata/suricata_uninstall.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/suricata/suricata_uninstall.php b/config/suricata/suricata_uninstall.php
index b8ea6097..558069be 100644
--- a/config/suricata/suricata_uninstall.php
+++ b/config/suricata/suricata_uninstall.php
@@ -35,6 +35,7 @@ $suricatadir = SURICATADIR;
$suricatalogdir = SURICATALOGDIR;
$rcdir = RCFILEPREFIX;
$suricata_rules_upd_log = RULES_UPD_LOGFILE;
+$suri_pf_table = SURICATA_PF_TABLE;
log_error(gettext("[Suricata] Suricata package uninstall in progress..."));
@@ -64,6 +65,7 @@ mwexec('/usr/sbin/pw userdel suricata; /usr/sbin/pw groupdel suricata', true);
/* Remove the Suricata cron jobs. */
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/www/suricata/suricata_check_for_rule_updates.php", false);
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_check_cron_misc.inc", false);
+install_cron_job("pfctl -t {$suri_pf_table} -T expire" , false);
/* See if we are to keep Suricata log files on uninstall */
if ($config['installedpackages']['suricata']['config'][0]['clearlogs'] == 'on') {