diff options
Diffstat (limited to 'debian/postrm')
-rw-r--r-- | debian/postrm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..c229e40 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,53 @@ +#! /bin/sh +# postrm script for ca-certificates +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove) + cd /etc/ssl/certs + echo -n "Removing hash symlinks in /etc/ssl/certs ..." + find . -type l -print | while read h + do + test -f $h || rm -f $h + done + echo done. + ;; + + purge) + rm -f /etc/ssl/certs/ca-certificates.crt + rm -f /etc/ca-certificates.conf + if test -e /usr/share/debconf/confmodule; then + . /usr/share/debconf/confmodule + db_purge + fi + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + |