diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
commit | 236cb75e4430569627585a5818d9ce9bc85640f8 (patch) | |
tree | f84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/samba.postrm | |
parent | Adding upstream version 2:4.17.12+dfsg. (diff) | |
download | samba-236cb75e4430569627585a5818d9ce9bc85640f8.tar.xz samba-236cb75e4430569627585a5818d9ce9bc85640f8.zip |
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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# |