diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:10:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:10:40 +0000 |
commit | 566fd589c5ee5d23902ef807f0fde30701b9db93 (patch) | |
tree | 6c661dce007545291cfc2f515a7af6cc15a418ff /examples/ca-certificates-local/debian/postrm | |
parent | Initial commit. (diff) | |
download | ca-certificates-566fd589c5ee5d23902ef807f0fde30701b9db93.tar.xz ca-certificates-566fd589c5ee5d23902ef807f0fde30701b9db93.zip |
Adding upstream version 20240203.upstream/20240203upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/ca-certificates-local/debian/postrm')
-rw-r--r-- | examples/ca-certificates-local/debian/postrm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/ca-certificates-local/debian/postrm b/examples/ca-certificates-local/debian/postrm new file mode 100644 index 0000000..2a8df55 --- /dev/null +++ b/examples/ca-certificates-local/debian/postrm @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + # Recreate the /usr/local/share/ca-certificates directory, since we are + # ignoring Debian Policy by intentionally installing here. Removal of + # ca-certificates-local removes this directory if empty. + if [ ! -e /usr/local/share/ca-certificates ]; then + if mkdir /usr/local/share/ca-certificates 2>/dev/null; then + chown root:staff /usr/local/share/ca-certificates + chmod 2775 /usr/local/share/ca-certificates + fi + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |