summarylogtreecommitdiffstats
path: root/mpd.install
diff options
context:
space:
mode:
authorsudokode2015-06-08 20:46:39 -0400
committersudokode2015-06-08 20:46:39 -0400
commit6631ae2495d94b76a804d85497ad700895703d5e (patch)
treec310f440cc67a17208a1c8c5b753de81561a30ee /mpd.install
downloadaur-6631ae2495d94b76a804d85497ad700895703d5e.tar.gz
init
Diffstat (limited to 'mpd.install')
-rw-r--r--mpd.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/mpd.install b/mpd.install
new file mode 100644
index 000000000000..261b8fd0d44a
--- /dev/null
+++ b/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
+ true
+}
+
+post_remove() {
+ getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+ getent group mpd &>/dev/null && groupdel mpd >/dev/null
+ true
+}