[Pkg-bugzilla-commits] r119 - bugzilla/trunk/debian

Alexis Sukrieh sukria-guest at costa.debian.org
Mon Sep 12 22:10:24 UTC 2005


Author: sukria-guest
Date: 2005-09-12 22:10:24 +0000 (Mon, 12 Sep 2005)
New Revision: 119

Modified:
   bugzilla/trunk/debian/bugzilla.cron.daily
   bugzilla/trunk/debian/changelog
Log:
fixing 320004

Modified: bugzilla/trunk/debian/bugzilla.cron.daily
===================================================================
--- bugzilla/trunk/debian/bugzilla.cron.daily	2005-09-12 22:04:06 UTC (rev 118)
+++ bugzilla/trunk/debian/bugzilla.cron.daily	2005-09-12 22:10:24 UTC (rev 119)
@@ -1,9 +1,24 @@
-#!/bin/sh -e
+#!/bin/sh 
 
+set -e
+
 umask 022
 
-if [ -f /usr/share/bugzilla/lib/collectstats.pl \
-  -a -f /usr/share/bugzilla/lib/whineatnews.pl ] ; then
-	su www-data -c /usr/share/bugzilla/lib/collectstats.pl
-	su www-data -c /usr/share/bugzilla/lib/whineatnews.pl
-fi
+doit() 
+{
+	if [ -f /usr/share/bugzilla/lib/collectstats.pl \
+        	-a -f /usr/share/bugzilla/lib/whineatnews.pl ] ; then
+	            su www-data -c /usr/share/bugzilla/lib/collectstats.pl
+	            su www-data -c /usr/share/bugzilla/lib/whineatnews.pl
+	fi
+}
+
+# process the main configuration: /etc/bugzilla
+doit
+
+# then the extra sites: /etc/bugzilla/sites/*
+for site in `cd /etc/bugzilla/sites && ls`; do
+    X_BUGZILLA_SITE="$site" doit
+done
+
+exit 0

Modified: bugzilla/trunk/debian/changelog
===================================================================
--- bugzilla/trunk/debian/changelog	2005-09-12 22:04:06 UTC (rev 118)
+++ bugzilla/trunk/debian/changelog	2005-09-12 22:10:24 UTC (rev 119)
@@ -10,8 +10,11 @@
   * showdependencygraph should not require a 64x64 inches, patch added in
     debian/patches. Thanks to Yann Dirson.
     (closes: #305360)
+  * Updated the cron.daily script so that extra sites are processed
+    (/etc/bugzilla/sites/*). Thanks to Yann Dirson.
+    (closes: #320004)
 
- -- Alexis Sukrieh <sukria at sukria.net>  Tue, 13 Sep 2005 00:02:53 +0200
+ -- Alexis Sukrieh <sukria at sukria.net>  Tue, 13 Sep 2005 00:09:04 +0200
 
 bugzilla (2.18.3-1) unstable; urgency=low
 




More information about the Pkg-bugzilla-commits mailing list