diff options
Diffstat (limited to '')
-rw-r--r-- | debian/samba-ad-dc.preinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/samba-ad-dc.preinst b/debian/samba-ad-dc.preinst new file mode 100644 index 0000000..b6f6b71 --- /dev/null +++ b/debian/samba-ad-dc.preinst @@ -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" = "upgrade" ] || [ "$1" = "install" ]; then + dpkg-divert --package #PACKAGE# --no-rename \ + --divert /lib/systemd/system/samba-ad-dc.service.usr-is-merged \ + --add /lib/systemd/system/samba-ad-dc.service +fi +# end-remove-after + +#DEBHELPER# + +exit 0 |