summaryrefslogtreecommitdiffstats
path: root/autoscripts/postrm-systemd-user
blob: bf48d1a3cc937e2ff82e04fbbf4db5f40e7906a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ] ; then
		deb-systemd-helper --user mask #UNITFILES# >/dev/null || true
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ] ; then
		deb-systemd-helper --user purge #UNITFILES# >/dev/null || true
		deb-systemd-helper --user unmask #UNITFILES# >/dev/null || true
	fi
fi