File: //var/lib/dpkg/info/postgresql-common.prerm
#!/bin/sh
set -e
# Automatically added by dh_installsystemd/13.6ubuntu1~bpo20.04.1
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
deb-systemd-invoke stop 'postgresql.service' >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installinit/13.6ubuntu1~bpo20.04.1
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/postgresql" ] ; then
invoke-rc.d --skip-systemd-native postgresql stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installdeb/13.6ubuntu1~bpo20.04.1
dpkg-maintscript-helper rm_conffile /etc/apt/apt.conf.d/01autoremove-postgresql 229\~ postgresql-common -- "$@"
# End automatically added section