🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-10 17:22:13 -04:00
parent 3bb048b54c
commit 118d7830ce
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -52,6 +52,7 @@ __start() {
mpd --verbose /config/mpd/mpd.conf mpd --verbose /config/mpd/mpd.conf
fi fi
sleep 10 sleep 10
mpc queued | grep '^' mpc load all
if pgrep mpd &>/dev/null; then if pgrep mpd &>/dev/null; then
mpc status 2>&1 | grep -q 'playing' || mpc play &>/dev/null mpc status 2>&1 | grep -q 'playing' || mpc play &>/dev/null
else else
@ -123,6 +124,8 @@ if ! pgrep mpd &>/dev/null; then
[ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid" [ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid"
fi fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
find /data/music/ -iname *.mp3 -type f >/data/playlists/all.m3u
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
chmod 777 -Rf "/data/mpd" "/data/navidrome" "/data/music" "/data/playlists" "/config/mpd" chmod 777 -Rf "/data/mpd" "/data/navidrome" "/data/music" "/data/playlists" "/config/mpd"
chown -Rf mpd "/config/mpd" "/data/mpd" chown -Rf mpd "/config/mpd" "/data/mpd"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -