summaryrefslogtreecommitdiffstats
path: root/abs/extra/mpd/install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:57 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:57 (GMT)
commitfc357b029363755a1a75e05700701265134e71d6 (patch)
tree3934ade5d8c8e32875cdc18cd536359de9c62532 /abs/extra/mpd/install
parent23b63734b90bb8c37d88673383002cbd210cdc99 (diff)
parentefb028d99b56e06e48dfc3d762e9d699ee1f24b7 (diff)
downloadlinhes_pkgbuild-fc357b029363755a1a75e05700701265134e71d6.zip
linhes_pkgbuild-fc357b029363755a1a75e05700701265134e71d6.tar.gz
linhes_pkgbuild-fc357b029363755a1a75e05700701265134e71d6.tar.bz2
Merge branch 'testing' of linhes.org:linhes_pkgbuild into testing
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
+}