Ops, i've forgot a redirect also for sa-compile.

Attached a new patch.
--- /tmp/spamassassin	2012-09-10 11:46:09.597794514 +0200
+++ /etc/cron.daily/spamassassin	2012-09-13 12:14:33.000000000 +0200
@@ -29,7 +29,7 @@
 # Compile, if rules have previously been compiled, and it's possible
     if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile \
         -a -d /var/lib/spamassassin/compiled ]; then
-        sa-compile --quiet
+        sa-compile --quiet > /dev/null 2>&1
         # Fixup perms -- group and other should be able to
         # read and execute, but never write.  Works around
         # sa-compile's failure to obey umask.
@@ -43,9 +43,9 @@
 reload() {
     # Reload
     if which invoke-rc.d >/dev/null 2>&1; then
-	invoke-rc.d spamassassin reload > /dev/null
+	invoke-rc.d spamassassin reload > /dev/null 2>&1
     else
-	/etc/init.d/spamassassin reload > /dev/null
+	/etc/init.d/spamassassin reload > /dev/null 2>&1
     fi
     if [ -d /etc/spamassassin/sa-update-hooks.d ]; then
         run-parts --lsbsysinit /etc/spamassassin/sa-update-hooks.d
@@ -66,7 +66,7 @@
 case $? in
     0)
         # got updates!
-        spamassassin --lint || die_with_lint
+        spamassassin --lint > /dev/null 2>&1 || die_with_lint
         do_compile
 	reload
         ;;

Reply via email to