summaryrefslogtreecommitdiffstats
path: root/debian/samba-ad-dc.postinst
blob: 5427d9927e26751decbd4845f00fdc2ddad00a87 (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" = "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