diff options
author | Ermal <eri@pfsense.org> | 2010-03-23 15:34:21 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-23 15:34:21 +0000 |
commit | 399ca88cb617836fdbf08fd0288200ec74541c3f (patch) | |
tree | a48c3eee5bbd021a35f2f8874f9bada9cbda62dc /config/spamd/spamd.inc | |
parent | bb9049d981971cf03fd39370ba7e14db549634fb (diff) | |
download | pfsense-packages-399ca88cb617836fdbf08fd0288200ec74541c3f.tar.gz pfsense-packages-399ca88cb617836fdbf08fd0288200ec74541c3f.tar.bz2 pfsense-packages-399ca88cb617836fdbf08fd0288200ec74541c3f.zip |
Enable spamd package on 2.0 fix several paths with the move of files to the new directory also unlink the previous configuration file before linking anew one.
Diffstat (limited to 'config/spamd/spamd.inc')
-rw-r--r-- | config/spamd/spamd.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc index c33e589c..e6b89051 100644 --- a/config/spamd/spamd.inc +++ b/config/spamd/spamd.inc @@ -153,6 +153,7 @@ function sync_package_spamd() { log_error("Restart cron"); mwexec("killall -HUP cron"); log_error("Setting up spamd.conf symlink"); + mwexec("rm -f /usr/local/etc/spamd/spamd.conf"); mwexec("ln -s /etc/spamd.conf /usr/local/etc/spamd/spamd.conf"); log_error("Stopping spamd"); mwexec("/usr/local/etc/rc.d/spamd.sh stop"); @@ -245,7 +246,10 @@ 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() { |