1 # arg 1: the new package version
3 echo "==> mpd: Create a config under /etc/mpd.conf before using MPD (Example: /etc/mpd.conf.example)"
4 groupadd -g 45 mpd &>/dev/null
5 useradd -u 45 -g mpd -d /var/lib/mpd -s /bin/true mpd &>/dev/null
6 gpasswd -a mpd audio &>/dev/null
7 chown mpd:mpd -R /var/{lib,log,run}/mpd
10 # arg 1: the new package version
11 # arg 2: the old package version
13 echo "==> mpd: upgrade from 0.11 -> 0.12: configuration file syntax changed, "
14 echo "==> mpd: make sure to update your configuration file! See example conf: /etc/mpd.conf.example"
15 echo "==> mpd: If you install any of the optional dependencies, you will have to rebuild this package."
19 # arg 1: the old package version
21 userdel mpd &>/dev/null