summaryrefslogtreecommitdiffstats
path: root/abs/extra/mpd/mpd.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-04 00:10:18 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-04 00:10:18 (GMT)
commitace56a4b6bf67c39d90980cf233b05541d8ac5b9 (patch)
treec6fccb2866707f93a184e4f62a8cecd0a180229a /abs/extra/mpd/mpd.install
parent2ba0826ab4c85aa4caf1613cfdb77123935a16b4 (diff)
downloadlinhes_pkgbuild-ace56a4b6bf67c39d90980cf233b05541d8ac5b9.zip
linhes_pkgbuild-ace56a4b6bf67c39d90980cf233b05541d8ac5b9.tar.gz
linhes_pkgbuild-ace56a4b6bf67c39d90980cf233b05541d8ac5b9.tar.bz2
mpd: Reject. Closes #741
Diffstat (limited to 'abs/extra/mpd/mpd.install')
-rw-r--r--abs/extra/mpd/mpd.install18
1 files changed, 0 insertions, 18 deletions
diff --git a/abs/extra/mpd/mpd.install b/abs/extra/mpd/mpd.install
deleted file mode 100644
index 885505a..0000000
--- a/abs/extra/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
-}