summaryrefslogtreecommitdiff
path: root/testing/mpd/install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-23 00:01:14 +0000
committerroot <root@rshg054.dnsready.net>2012-03-23 00:01:14 +0000
commit1512c792951d7fbd2c9c336f9bf35654bbb85cc6 (patch)
treed786dcc22bc7f01d7629eb8a07415d2a904fc015 /testing/mpd/install
parent39e662ccfbe62ae77d458159d192816171a22f43 (diff)
Fri Mar 23 00:01:14 UTC 2012
Diffstat (limited to 'testing/mpd/install')
-rw-r--r--testing/mpd/install10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/mpd/install b/testing/mpd/install
new file mode 100644
index 000000000..655645716
--- /dev/null
+++ b/testing/mpd/install
@@ -0,0 +1,10 @@
+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/true -G audio mpd >/dev/null
+ echo '==> Now create a /etc/mpd.conf file; see: /usr/share/mpd/mpd.conf.example'
+}
+
+post_remove() {
+ getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+ getent group mpd &>/dev/null && groupdel mpd >/dev/null
+}