summaryrefslogtreecommitdiffstats
path: root/debian/samba-ad-dc.preinst
blob: a7996805d262aca7abb210e2d5b8844176881457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

# 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