One more redirection, by some day, the update script emit:

 http: GET http://daryl.dostech.ca/sa-update/asf/1387911.tar.gz request failed: 
404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> 
<title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested 
URL /sa-update/asf/1387911.tar.gz was not found on this server.</p> <hr> 
<address>Apache/2.2.6 (Fedora) Server at daryl.dostech.ca Port 80</address> 
</body></html>

generated by sa-update.

PS: $SA_UPDATE_OPTS is a variable i've defined on
 /etc/default/spamassassin.
--- /tmp/spamassassin	2012-09-10 11:46:09.597794514 +0200
+++ /etc/cron.daily/spamassassin	2012-09-21 12:14:23.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
@@ -61,12 +61,12 @@
 
 # Update
 umask 022
-sa-update $SA_UPDATE_OPTS
+sa-update $SA_UPDATE_OPTS > /dev/null 2>&1
 
 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