diff options
author | Michael Shuler <michael@pbandjelly.org> | 2017-07-18 23:44:30 -0500 |
---|---|---|
committer | Michael Shuler <michael@pbandjelly.org> | 2017-07-18 23:44:30 -0500 |
commit | aaf3d149270ec4bd972bfe87c703bb5419ee3630 (patch) | |
tree | fcb0c064be6ce01d3f2aefb8b561a6b8a075e4d6 /debian/ca-certificates.postinst | |
parent | 4b4704905230ef42834e25511772679c7922975e (diff) | |
download | ca-certificates-aaf3d149270ec4bd972bfe87c703bb5419ee3630.tar.gz |
Prevent postinst failure on read-only /usr/local
Diffstat (limited to 'debian/ca-certificates.postinst')
-rw-r--r-- | debian/ca-certificates.postinst | 4 |
1 files changed, 2 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 |