#! /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#