summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shuler <michael@pbandjelly.org>2015-06-03 01:12:49 -0500
committerMichael Shuler <michael@pbandjelly.org>2015-06-03 01:12:49 -0500
commitd42a505198b986c803473152548a26272a40316c (patch)
treea96b52ffac5c6bee34519b6120e1427f9e0f9226
parent651de1c8439c6206ea76b7d502daa9de05b5a461 (diff)
downloadca-certificates-d42a505198b986c803473152548a26272a40316c.tar.gz
Handle /usr/local/share/ca-certificates permissions and ownership on upgrade
-rw-r--r--debian/changelog8
-rw-r--r--debian/postinst5
2 files changed, 13 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index ee00a56..5551732 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ca-certificates (20150603) UNRELEASED; urgency=medium
+
+ * debian/postinst:
+ Handle /usr/local/share/ca-certificates permissions and ownership on
+ upgrade. Closes: #611501
+
+ -- Michael Shuler <michael@pbandjelly.org> Wed, 03 Jun 2015 01:00:43 -0500
+
ca-certificates (20150426) unstable; urgency=medium
* debian/postinst:
diff --git a/debian/postinst b/debian/postinst
index bc70046..f7ef7f4 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -44,6 +44,11 @@ case "$1" in
if mkdir -m $(stat -c %a /usr/local) /usr/local/share/ca-certificates 2>/dev/null; then
chgrp $(stat -c %g /usr/local) /usr/local/share/ca-certificates
fi
+ # Handle upgrades and allow local admin to override:
+ # e.g. dpkg-statoverride --add root staff 2775 /usr/local/share/ca-certificates
+ elif ! dpkg-statoverride --list /usr/local/share/ca-certificates >/dev/null; then
+ chmod $(stat -c %a /usr/local) /usr/local/share/ca-certificates
+ chown $(stat -c %u /usr/local):$(stat -c %g /usr/local) /usr/local/share/ca-certificates
fi
. /usr/share/debconf/confmodule