summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shuler <michael@pbandjelly.org>2017-07-18 23:44:30 -0500
committerMichael Shuler <michael@pbandjelly.org>2017-07-18 23:44:30 -0500
commitaaf3d149270ec4bd972bfe87c703bb5419ee3630 (patch)
treefcb0c064be6ce01d3f2aefb8b561a6b8a075e4d6
parent4b4704905230ef42834e25511772679c7922975e (diff)
downloadca-certificates-aaf3d149270ec4bd972bfe87c703bb5419ee3630.tar.gz
Prevent postinst failure on read-only /usr/local
-rw-r--r--debian/ca-certificates.postinst4
-rw-r--r--debian/changelog2
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/ca-certificates.postinst b/debian/ca-certificates.postinst
index 21586bb..8db857c 100644
--- a/debian/ca-certificates.postinst
+++ b/debian/ca-certificates.postinst
@@ -47,8 +47,8 @@ case "$1" in
# 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
+ chmod $(stat -c %a /usr/local) /usr/local/share/ca-certificates || true
+ chown $(stat -c %u /usr/local):$(stat -c %g /usr/local) /usr/local/share/ca-certificates || true
fi
. /usr/share/debconf/confmodule
diff --git a/debian/changelog b/debian/changelog
index 9ebc8be..59ca6dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,8 @@ ca-certificates (20170717) UNRELEASED; urgency=medium
- "Verisign Class 2 Public Primary Certification Authority - G2"
- "Verisign Class 3 Public Primary Certification Authority"
- "WellsSecure Public Root Certificate Authority"
+ * debian/ca-certificates.postinst:
+ Prevent postinst failure on read-only /usr/local. Closes: #843722
-- Michael Shuler <michael@pbandjelly.org> Mon, 23 Jan 2017 16:57:18 -0600