aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 04:27:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 04:27:11 +0000
commitcf423c079f2e6ca5d9e78ccf6e5af4c972f06a77 (patch)
tree0ad95e6383b40e365314a8e85451b0e02e372308 /packages/spamd.inc
parent758cf47f9d3494daeb4c1fab6ad67b30216063a8 (diff)
downloadpfsense-packages-cf423c079f2e6ca5d9e78ccf6e5af4c972f06a77.tar.gz
pfsense-packages-cf423c079f2e6ca5d9e78ccf6e5af4c972f06a77.tar.bz2
pfsense-packages-cf423c079f2e6ca5d9e78ccf6e5af4c972f06a77.zip
It helps to add the text before mounting ro
Diffstat (limited to 'packages/spamd.inc')
-rw-r--r--packages/spamd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc
index f31cf053..7f986a1b 100644
--- a/packages/spamd.inc
+++ b/packages/spamd.inc
@@ -128,10 +128,10 @@ function sync_package_spamd() {
"stop" => $stop
)
);
- conf_mount_ro();
- config_unlock();
$cronjob = "*/120 * * * * root /usr/bin/nice -n20 /usr/local/sbin/spamd-setup";
add_text_to_file("/etc/crontab", $cronjob);
+ conf_mount_ro();
+ config_unlock();
mwexec("killall -HUP cron");
mwexec("ln -s /etc/spamd.conf /usr/local/etc/spamd.conf");
mwexec("/usr/local/etc/rc.d/spamd.sh stop");