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