#! /bin/sh
set -e

hook=/etc/apt/apt.conf.d/10pveapthook

case "$1" in
    purge)
        rm -f $hook.disabled
        ;;

    remove)
        if test -f $hook; then
            mv $hook $hook.disabled
        fi
        ;;

    abort-install)
        if test "x$2" != "x" && test -f $hook
        then
            mv $hook $hook.disabled
        fi
        ;;

    upgrade|failed-upgrade|abort-upgrade|disappear)
        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg 6.2-2\~\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg 6.2-2\~\~ -- "$@"
# End automatically added section


exit 0
