From 0a354ad0b2c9eaaa204c31db478da109dc6d2a8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:20:02 +0200 Subject: Adding debian version 2:4.20.0+dfsg-1~exp1. Signed-off-by: Daniel Baumann --- debian/samba.postrm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/samba.postrm (limited to 'debian/samba.postrm') 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# -- cgit v1.2.3