diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:32:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:32:04 +0000 |
commit | d61fa667198192a0943f05b5f3a5b34fe2a0f21c (patch) | |
tree | be9570b089ec7301bb58902cbb0915a0b72dd7e4 /debian/samba-ad-dc.preinst | |
parent | Adding debian version 2:4.20.1+dfsg-3. (diff) | |
download | samba-d61fa667198192a0943f05b5f3a5b34fe2a0f21c.tar.xz samba-d61fa667198192a0943f05b5f3a5b34fe2a0f21c.zip |
Adding debian version 2:4.20.1+dfsg-4.debian/2%4.20.1+dfsg-4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 |