summaryrefslogtreecommitdiff
path: root/debian/vyos-salt-minion.postinst
blob: 42e232cd2e5ac869ee24591340945b4d810bd858 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e
if deb-systemd-helper --quiet was-enabled salt-minion.service; then
	# Enables the unit on first installation, creates new
	# symlinks on upgrades if the unit file has changed.
	deb-systemd-helper enable salt-minion.service >/dev/null || true
fi

if [ -x "/etc/init.d/salt-minion" ]; then
	update-rc.d -f salt-minion remove >/dev/null
fi