summaryrefslogtreecommitdiff
path: root/extra/avahi/install
blob: d4ae23e715dd8915884d89819b70f75985be0e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
	getent group avahi &>/dev/null || groupadd -r -g 84 avahi >/dev/null
	getent passwd avahi &>/dev/null || useradd -r -u 84 -g avahi -d / -s /bin/false -c avahi avahi >/dev/null
	true
}

post_remove() {
	getent passwd avahi &>/dev/null && userdel avahi >/dev/null
	getent group avahi &>/dev/null && groupdel avahi >/dev/null
	true
}