summaryrefslogtreecommitdiff
path: root/community/unbound/install
blob: 964792592626343f52279950a8f87153d1360111 (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
	getent group unbound &>/dev/null || groupadd -r unbound >/dev/null
	getent passwd unbound &>/dev/null || useradd -r -g unbound -d /etc/unbound -s /bin/false -c unbound unbound >/dev/null
}

post_remove() {
	getent passwd unbound &>/dev/null && userdel unbound >/dev/null
	getent group unbound &>/dev/null && groupdel unbound >/dev/null
	return 0
}