summaryrefslogtreecommitdiff
path: root/testing/mpd/mpd.install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-05-02 00:29:16 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-05-02 00:29:16 +0000
commit3be02a9acbeb006d9a9e6136c54d91064cc7d80e (patch)
treeade247e1b6c47fbd7362273f59d3ae4f955587a7 /testing/mpd/mpd.install
parent40f0b1c7106cc1fed13f14e80f083ecd69c416f5 (diff)
Mon May 2 00:29:22 UTC 2011
Diffstat (limited to 'testing/mpd/mpd.install')
-rw-r--r--testing/mpd/mpd.install18
1 files changed, 0 insertions, 18 deletions
diff --git a/testing/mpd/mpd.install b/testing/mpd/mpd.install
deleted file mode 100644
index 885505a07..000000000
--- a/testing/mpd/mpd.install
+++ /dev/null
@@ -1,18 +0,0 @@
-post_install() {
- post_upgrade
- echo "==> Create a configuration file /etc/mpd.conf before using MPD (example: /usr/share/mpd/mpd.conf.example)"
-}
-
-post_upgrade() {
- getent group "mpd" &>/dev/null || groupadd -r -g 45 mpd 1>/dev/null
- getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" mpd 1>/dev/null
- for dir in /var/{lib,log}/mpd; do
- chown -R mpd:mpd "$dir" 1>/dev/null
- done
-}
-
-post_remove() {
- getent passwd "mpd" &>/dev/null && userdel mpd 1>/dev/null
- getent group "mpd" &>/dev/null && groupdel mpd 1>/dev/null
- [ -f etc/mpd.conf ] && mv etc/mpd.conf etc/mpd.conf.pacsave 1>/dev/null
-}