HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/msmtp.postrm
#!/bin/sh

set -e

case $1 in
    purge)
        if command -v ucf >/dev/null; then
            ucf --purge /etc/msmtprc
        fi

        rm -f /etc/msmtprc

        if getent passwd msmtp >/dev/null; then
            if command -v deluser >/dev/null; then
                deluser --quiet msmtp >/dev/null
            fi
        fi
        ;;
    *)
        ;;
esac

# Automatically added by dh_installdebconf/13.11.4
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section
# Automatically added by dh_apparmor/3.0.8-2
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.bin.msmtp" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.bin.msmtp" || true
    rm -f "/etc/apparmor.d/force-complain/usr.bin.msmtp" || true
    rm -f "/etc/apparmor.d/local/usr.bin.msmtp" || true
    rm -f /var/cache/apparmor/*/"usr.bin.msmtp" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section