diff options
Diffstat (limited to 'debian/samba.postrm')
-rw-r--r-- | debian/samba.postrm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/samba.postrm b/debian/samba.postrm new file mode 100644 index 0000000..0c0131e --- /dev/null +++ b/debian/samba.postrm @@ -0,0 +1,26 @@ +#! /bin/sh -e + +set -e + +if [ "$1" = purge ]; then + + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi + + if [ "$(readlink /etc/systemd/system/samba-ad-dc.service)" = '/dev/null' ]; then + # Remove masking done by postinst (#832352) + rm /etc/systemd/system/samba-ad-dc.service + fi + + if [ -f /etc/apparmor.d/samba/smbd-shares ]; then + rm /etc/apparmor.d/samba/smbd-shares + fi + + # compat symlink for a dir used for print jobs in the past + rm -f /var/spool/samba + +fi + +#DEBHELPER# |