[Popcon-commits] cvs commit to popularity-contest/debian by pere

popcon-commits at lists.alioth.debian.org popcon-commits@lists.alioth.debian.org
Mon Jul 4 15:23:52 UTC 2005


Update of /cvsroot/popcon/popularity-contest/debian
In directory haydn:/tmp/cvs-serv31048

Modified Files:
	cron.weekly 
Log Message:
Log to syslog when unable to submit popcon report.


Index: cron.weekly
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/cron.weekly,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cron.weekly	2 Jul 2005 17:18:06 -0000	1.5
+++ cron.weekly	4 Jul 2005 15:23:50 -0000	1.6
@@ -58,10 +58,16 @@
 
 if [ -x "`which sendmail 2>/dev/null`" ]; then
 	do_sendmail < $POPCON
+else
+	logger -t popcon "Unable to submit popcon report using sendmail."
 fi
 
 # try to post the report through http POST
 if [ "$SUBMITURL" ] && [ "yes" = "$USEHTTP" ]; then
-	setsid /usr/share/popularity-contest/popcon-upload \
-	    -u $SUBMITURL -f $POPCON 2>/dev/null
+	if setsid /usr/share/popularity-contest/popcon-upload \
+	    -u $SUBMITURL -f $POPCON 2>/dev/null ; then
+		:
+	else
+		logger -t popcon "Unable to submit popcon report using HTTP."
+	fi
 fi





More information about the Popcon-commits mailing list