diff options
Diffstat (limited to 'packages/p3scan-pf/p3scan-pf.inc')
-rw-r--r-- | packages/p3scan-pf/p3scan-pf.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/p3scan-pf/p3scan-pf.inc b/packages/p3scan-pf/p3scan-pf.inc index 599f5650..294604d3 100644 --- a/packages/p3scan-pf/p3scan-pf.inc +++ b/packages/p3scan-pf/p3scan-pf.inc @@ -326,8 +326,10 @@ function custom_php_install_command() { function custom_php_deinstall_command() { global $config, $g; conf_mount_rw(); - unlink_if_exists("/usr/local/pkg/pf/p3scan_rules.php"); - unlink_if_exists("/usr/local/www/p3scan_rules.php"); + + if (is_service_running("p3scan-pf")) + stop_service("p3scan-pf"); + unlink_if_exists("/usr/local/etc/p3scan/p3scan.conf"); unlink_if_exists("/usr/local/etc/p3scan/p3scan.mail"); unlink_if_exists("/usr/local/etc/rc.d/030.p3scan.sh"); @@ -335,6 +337,7 @@ function custom_php_deinstall_command() { mwexec("rm -rf /var/spool/p3scan"); mwexec("rm -rf /var/run/p3scan"); mwexec("rm -rf /var/run/p3scan"); + conf_mount_ro(); } |