[Pkg-cups-devel] r217 - cupsys/branches/cups-1.2-ubuntu/debian
Martin Pitt
mpitt at costa.debian.org
Tue May 9 14:06:12 UTC 2006
Author: mpitt
Date: Tue May 9 14:06:11 2006
New Revision: 217
Modified:
cupsys/branches/cups-1.2-ubuntu/debian/changelog
cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst
Log:
* debian/cupsys.postinst: Fix ownership of files in /var/cache/cups/ so that
they are writable by non-root cupsd. Earlier dapper versions got the
ownership wrong, so fix this for intra-dapper upgrades. Closes: LP#40795
Modified: cupsys/branches/cups-1.2-ubuntu/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/changelog (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/changelog Tue May 9 14:06:11 2006
@@ -2,8 +2,11 @@
* debian/cupsys.config: Print migration note to stderr, not stdout, to not
confuse debconf. Closes: LP#41716
+ * debian/cupsys.postinst: Fix ownership of files in /var/cache/cups/ so that
+ they are writable by non-root cupsd. Earlier dapper versions got the
+ ownership wrong, so fix this for intra-dapper upgrades. Closes: LP#40795
- -- Martin Pitt <martin.pitt at ubuntu.com> Tue, 9 May 2006 15:45:07 +0200
+ -- Martin Pitt <martin.pitt at ubuntu.com> Tue, 9 May 2006 16:03:10 +0200
cupsys (1.1.99.rc3-0ubuntu2) dapper; urgency=low
Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst Tue May 9 14:06:11 2006
@@ -197,6 +197,12 @@
grep -q '^Include cupsd-browsing.conf\>' /etc/cups/cupsd.conf; then
sed -i 's_^Include cupsd-browsing.conf_Include /etc/cups/cups.d/browse.conf_' /etc/cups/cupsd.conf
fi
+
+ # fix permissions for upgrades which might have written cache files as
+ # root
+ if [ -d /var/cache/cups ]; then
+ chown -R cupsys:lp /var/cache/cups || true
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
More information about the Pkg-cups-devel
mailing list