summaryrefslogtreecommitdiffstats
path: root/debian/samba-ad-dc.preinst
blob: b6f6b71c9949a442e6d5e6201e09ea5e7994d9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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