aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-25 09:55:51 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-25 09:55:51 +0200
commitbdeb5bae62a6f3716e3ed7b099f0cca66d9d3ee9 (patch)
tree2d2cea3c826c642a43c615437258fcfd545d76b9 /config
parentbde0ce318eafa8de5e4f146bb104af78527c639e (diff)
downloadpfsense-packages-bdeb5bae62a6f3716e3ed7b099f0cca66d9d3ee9.tar.gz
pfsense-packages-bdeb5bae62a6f3716e3ed7b099f0cca66d9d3ee9.tar.bz2
pfsense-packages-bdeb5bae62a6f3716e3ed7b099f0cca66d9d3ee9.zip
Remove useless remount calls and other redundant stuff
All of these are dealt with by install_package(), uninstall_package() and delete_package_xml() from pkg-utils.inc.
Diffstat (limited to 'config')
-rw-r--r--config/spamd/spamd.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc
index a7be4587..bceafd09 100644
--- a/config/spamd/spamd.inc
+++ b/config/spamd/spamd.inc
@@ -285,21 +285,14 @@ function custom_php_install_command() {
system("touch /var/db/whitelist.txt");
system("touch /var/db/blacklist.txt");
sync_package_spamd();
- conf_mount_rw();
exec("/usr/sbin/pw usermod _spamd -g proxy -G _spamd,proxy");
exec("/bin/cp /usr/local/etc/spamd/spamd.conf.sample /usr/local/etc/spamd/spamd.conf");
- conf_mount_ro();
}
function custom_php_deinstall_command() {
global $config, $g;
- conf_mount_rw();
- exec("killall -9 spamd");
unlink_if_exists("/usr/local/pkg/pf/spamd_rules.php");
- unlink_if_exists("/usr/local/www/spamd_rules.php");
- unlink_if_exists("/usr/local/etc/rc.d/spamd.sh");
spamd_install_cron(false);
- conf_mount_ro();
filter_configure();
}