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 if [ "$(vercmp $2 0.12)" -lt 0 ]; then
14 echo "==> mpd: upgrade from 0.11 -> 0.12: configuration file syntax changed, "
15 echo "==> mpd: make sure to update your configuration file! example conf: /etc/mpd.conf.example"
17 chown mpd:mpd -R /var/{lib,log,run}/mpd
20 # arg 1: the old package version
22 userdel mpd &>/dev/null