From aaf3d149270ec4bd972bfe87c703bb5419ee3630 Mon Sep 17 00:00:00 2001 From: Michael Shuler Date: Tue, 18 Jul 2017 23:44:30 -0500 Subject: Prevent postinst failure on read-only /usr/local --- debian/ca-certificates.postinst | 4 ++-- debian/changelog | 2 ++ 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 Mon, 23 Jan 2017 16:57:18 -0600 -- cgit v1.2.1