summaryrefslogtreecommitdiff
path: root/extra/mpd/install
blob: 261b8fd0d44adfc43d564d0ca73037434dddbdc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
	getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null
	getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null
	true
}

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