File: /var/lib/dpkg/info/apport.prerm
#!/bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/apport/native-origins.d/lts-q-backports 2.5.1-0ubuntu8~ -- "$@"
# End automatically added section
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
deb-systemd-invoke stop apport-forward.socket >/dev/null
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/apport" ] || [ -e "/etc/init/apport.conf" ]; then
invoke-rc.d apport stop || true
fi
# End automatically added section
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p apport
else
dpkg -L apport | grep \.py$ | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section