diff options
Diffstat (limited to '')
-rw-r--r-- | debian/samba-ad-dc.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/samba-ad-dc.postinst b/debian/samba-ad-dc.postinst new file mode 100644 index 0000000..ddc75ea --- /dev/null +++ b/debian/samba-ad-dc.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +# begin-remove-after: released:trixie +# protective diversion of files moved from / to /usr, to avoid file loss. +# Only for upgrades. +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then + dpkg-divert --package #PACKAGE# --no-rename \ + --divert /lib/systemd/system/samba-ad-dc.service.usr-is-merged \ + --remove /lib/systemd/system/samba-ad-dc.service +fi +# end-remove-after + +#DEBHELPER# + +exit 0 |