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