aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-22 18:52:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-22 18:52:06 +0000
commit16477efacfec2f0bf0ba5a31b991c0c57edfbfe9 (patch)
tree459a7953854135b791e222ad95eee0cc58d0a671 /packages
parentb30008ecd12fceb33c1af7d5af02b8f9737cdbb2 (diff)
downloadpfsense-packages-16477efacfec2f0bf0ba5a31b991c0c57edfbfe9.tar.gz
pfsense-packages-16477efacfec2f0bf0ba5a31b991c0c57edfbfe9.tar.bz2
pfsense-packages-16477efacfec2f0bf0ba5a31b991c0c57edfbfe9.zip
Attempt to correct a spamd xml error
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml
index ff0a6f69..ccd97d28 100644
--- a/packages/spamd.xml
+++ b/packages/spamd.xml
@@ -120,7 +120,7 @@
fwrite($fd, "\t:file=/var/mail/whitelist.txt\n");
/* loop through each item and write out its configuration */
fwrite($fd, "\n# begin of user created entries\n");
- if($config['installedpackages']['spamd']['config']) {
+ if($config['installedpackages']['spamd']['config'] != "") {
foreach($config['installedpackages']['spamd']['config'] as $spamd) {
fwrite($fd, rtrim($spamd['providername']) . ":\\\n");
fwrite($fd, "\t:" . rtrim($spamd['providertype']) . ":\\\n");
@@ -137,7 +137,7 @@
fwrite($fd, $spamd['ip'] . "\n");
}
fclose($fd);
- system("/usr/local/etc/rc.d/spamd 2>/dev/null");
+ system("/usr/local/etc/rc.d/spamd start");
conf_mount_ro();
config_unlock();
}