X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fpostrm;h=260a1c4e99e74fb42bdddf9f5cae6b88805ea272;hb=ff0774c4679cc5da6e3cf32bfe502341dc2b16d4;hp=c229e4027591115654ba3799f6c5c79abeebf573;hpb=ec9311ac6b70963e9a1feb14341c07fbbea377a2;p=ca-certificates.git diff --git a/debian/postrm b/debian/postrm index c229e40..260a1c4 100644 --- a/debian/postrm +++ b/debian/postrm @@ -18,18 +18,19 @@ set -e case "$1" in remove) - cd /etc/ssl/certs echo -n "Removing hash symlinks in /etc/ssl/certs ..." - find . -type l -print | while read h + find /etc/ssl/certs -type l -print | while read h do - test -f $h || rm -f $h + test -f "$h" || rm -f "$h" done echo done. ;; purge) - rm -f /etc/ssl/certs/ca-certificates.crt - rm -f /etc/ca-certificates.conf + rm -f /etc/ssl/certs/ca-certificates.crt* + # Fix for #454334 + rmdir --ignore-fail-on-non-empty /etc/ssl + rm -f /etc/ca-certificates.conf* if test -e /usr/share/debconf/confmodule; then . /usr/share/debconf/confmodule db_purge