[Python-apps-commits] r7071 - in packages/fookebox/trunk/debian (3 files)

cockroach-guest at users.alioth.debian.org cockroach-guest at users.alioth.debian.org
Sun May 8 03:19:35 UTC 2011


    Date: Sunday, May 8, 2011 @ 03:19:25
  Author: cockroach-guest
Revision: 7071

File ownership changes are now done in postinst again

Modified:
  packages/fookebox/trunk/debian/fookebox.lintian-overrides
  packages/fookebox/trunk/debian/postinst
  packages/fookebox/trunk/debian/rules

Modified: packages/fookebox/trunk/debian/fookebox.lintian-overrides
===================================================================
--- packages/fookebox/trunk/debian/fookebox.lintian-overrides	2011-05-07 18:59:23 UTC (rev 7070)
+++ packages/fookebox/trunk/debian/fookebox.lintian-overrides	2011-05-08 03:19:25 UTC (rev 7071)
@@ -1,6 +1,6 @@
 # config.ini may contain the mpd password
 fookebox binary: non-standard-file-perm etc/fookebox/config.ini 0640 != 0644
-# the directory for rendered templates needs to be writable by the www-data group
+# the directory for rendered templates must be writable by the www-data group
 fookebox binary: non-standard-dir-perm var/cache/fookebox/templates/ 0775 != 0755
-# the www-data group also needs to be able to make changes to the schedule database file
+# the www-data group also makes changes to the schedule database file
 fookebox binary: non-standard-dir-perm var/lib/fookebox/ 0775 != 0755

Modified: packages/fookebox/trunk/debian/postinst
===================================================================
--- packages/fookebox/trunk/debian/postinst	2011-05-07 18:59:23 UTC (rev 7070)
+++ packages/fookebox/trunk/debian/postinst	2011-05-08 03:19:25 UTC (rev 7071)
@@ -13,6 +13,13 @@
 			python /usr/share/doc/fookebox/examples/create-database.py
 			chgrp www-data /var/lib/fookebox/fookebox.sqlite
 			chmod 0660 /var/lib/fookebox/fookebox.sqlite
+
+			# Set permissions
+			chgrp -R www-data /var/cache/fookebox
+			chgrp www-data /var/lib/fookebox
+			chgrp www-data /etc/fookebox/apache.conf
+			chgrp www-data /etc/fookebox/fookebox.wsgi
+			chgrp www-data /etc/fookebox/config.ini
 		fi
 	;;
 

Modified: packages/fookebox/trunk/debian/rules
===================================================================
--- packages/fookebox/trunk/debian/rules	2011-05-07 18:59:23 UTC (rev 7070)
+++ packages/fookebox/trunk/debian/rules	2011-05-08 03:19:25 UTC (rev 7071)
@@ -15,13 +15,6 @@
 override_dh_fixperms:
 	dh_fixperms
 
-	chgrp -R www-data debian/fookebox/var/cache/fookebox
 	chmod g+w debian/fookebox/var/cache/fookebox/templates
-
-	chgrp www-data debian/fookebox/var/lib/fookebox
 	chmod g+w debian/fookebox/var/lib/fookebox
-
-	chgrp www-data debian/fookebox/etc/fookebox/apache.conf
-	chgrp www-data debian/fookebox/etc/fookebox/fookebox.wsgi
-	chgrp www-data debian/fookebox/etc/fookebox/config.ini
 	chmod 0640 debian/fookebox/etc/fookebox/config.ini




More information about the Python-apps-commits mailing list