]> git.donarmstrong.com Git - ca-certificates.git/blobdiff - debian/postrm
Document new certificates in NEWS.
[ca-certificates.git] / debian / postrm
index c229e4027591115654ba3799f6c5c79abeebf573..260a1c4e99e74fb42bdddf9f5cae6b88805ea272 100644 (file)
@@ -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