dockerfiles/mpd/mpd.sh

10 lines
222 B
Bash
Raw Normal View History

#!/bin/bash
mkdir -p /var/lib/mpd/{playlists,music} \
&& touch /var/lib/mpd/{state,tag_cache} \
&& chmod 0777 -R /var/lib/mpd \
&& chown -R mpd /var/lib/mpd
exec mpd --no-daemon --stdout --verbose /etc/mpd.conf "$@"