summaryrefslogtreecommitdiffstats
path: root/abs/extra/mpd/install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-12-09 18:04:12 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-12-09 18:04:12 (GMT)
commit28a76e0968386d28face2850d039aa624becd5cc (patch)
treef557f47979e704e37e03861ac18541e65b135445 /abs/extra/mpd/install
parentbbf857eb8190fce32a4191e61dd28b890a7ea059 (diff)
downloadlinhes_pkgbuild-28a76e0968386d28face2850d039aa624becd5cc.zip
linhes_pkgbuild-28a76e0968386d28face2850d039aa624becd5cc.tar.gz
linhes_pkgbuild-28a76e0968386d28face2850d039aa624becd5cc.tar.bz2
mpd: first checkin
The config file is stock, and will need to be changed for each persons setup refs #931
Diffstat (limited to 'abs/extra/mpd/install')
-rw-r--r--abs/extra/mpd/install11
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/extra/mpd/install b/abs/extra/mpd/install
new file mode 100644
index 0000000..12742b9
--- /dev/null
+++ b/abs/extra/mpd/install
@@ -0,0 +1,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
+ usr/bin/systemd-tmpfiles --create mpd.conf || true
+}
+
+post_remove() {
+ getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+ getent group mpd &>/dev/null && groupdel mpd >/dev/null
+ true
+}