[Pkg-bugzilla-commits] r96 - trunk/bugzilla-2.18/debian

Alexis Sukrieh sukria-guest@costa.debian.org
Mon, 09 May 2005 14:27:17 +0000


Author: sukria-guest
Date: 2005-05-09 14:27:17 +0000 (Mon, 09 May 2005)
New Revision: 96

Modified:
   trunk/bugzilla-2.18/debian/bugzilla.postinst
   trunk/bugzilla-2.18/debian/bugzilla.postrm
   trunk/bugzilla-2.18/debian/changelog
Log:
fixing #308232

Modified: trunk/bugzilla-2.18/debian/bugzilla.postinst
===================================================================
--- trunk/bugzilla-2.18/debian/bugzilla.postinst	2005-05-09 13:59:50 UTC (rev 95)
+++ trunk/bugzilla-2.18/debian/bugzilla.postinst	2005-05-09 14:27:17 UTC (rev 96)
@@ -105,6 +105,12 @@
 	# ask our fellow user if he likes to use it
 	replace_file ${params_218_new} ${params_218_dest}
 
+	# Let's fix the permissions for the /var/lib directory
+	datadir=/var/lib/bugzilla
+	chown -R www-data:www-data $datadir
+	chmod -R g+rw $datadir
+	chmod -R u+rw $datadir
+
 	# Let's close cleanly debconf	
 	db_stop
 fi 

Modified: trunk/bugzilla-2.18/debian/bugzilla.postrm
===================================================================
--- trunk/bugzilla-2.18/debian/bugzilla.postrm	2005-05-09 13:59:50 UTC (rev 95)
+++ trunk/bugzilla-2.18/debian/bugzilla.postrm	2005-05-09 14:27:17 UTC (rev 96)
@@ -20,7 +20,8 @@
        purge)
 	ucf --purge /etc/bugzilla/params
 	rm -rf /usr/share/bugzilla
-	rm -rf /var/cache/bugzilla/template
+	rm -rf /var/lib/bugzilla
+	rm -rf /var/cache/bugzilla
        ;;
 
        remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

Modified: trunk/bugzilla-2.18/debian/changelog
===================================================================
--- trunk/bugzilla-2.18/debian/changelog	2005-05-09 13:59:50 UTC (rev 95)
+++ trunk/bugzilla-2.18/debian/changelog	2005-05-09 14:27:17 UTC (rev 96)
@@ -1,3 +1,13 @@
+bugzilla (2.18-7) unstable; urgency=low
+
+  * Change the datadir to /var/lib/bugzilla
+    + Add a patch for replacing $datadir with /var/lib/bugzilla
+    + Update bugzilla.postinst for fixing the permissions on /var/lib/bugzilla
+    + Update bugzilla.postrm for purging /var/lib/bugzilla 
+    (closes: #308232)
+
+ -- Alexis Sukrieh <sukria@sukria.net>  Mon,  9 May 2005 16:33:58 +0200
+
 bugzilla (2.18-6) unstable; urgency=low
 
   * Added a dependency on ucf (>= 0.08).