hass-mpd/example/rootfs/etc/s6-overlay/s6-rc.d/mpd/run
2025-02-03 12:49:33 +00:00

17 lines
328 B
Plaintext

#!/command/with-contenv bashio
set -e
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
mkdir -p /data/database \
/media/mpd/media \
/media/mpd/playlists
chown root:root /usr/bin/mpd
chown root:root /usr/bin/mpc
chmod 0774 /usr/bin/mpd
chmod 0774 /usr/bin/mpc
bashio::log.info 'Start MPD'
mpd --stdout --no-daemon