diff options
Diffstat (limited to 'extra/mpd/install')
-rw-r--r-- | extra/mpd/install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/mpd/install b/extra/mpd/install index 655645716..261b8fd0d 100644 --- a/extra/mpd/install +++ b/extra/mpd/install @@ -1,10 +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/true -G audio mpd >/dev/null - echo '==> Now create a /etc/mpd.conf file; see: /usr/share/mpd/mpd.conf.example' + 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 } |