summaryrefslogtreecommitdiff
path: root/extra/mpd/install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mpd/install')
-rw-r--r--extra/mpd/install10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/mpd/install b/extra/mpd/install
new file mode 100644
index 000000000..655645716
--- /dev/null
+++ b/extra/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
+}