From c8e0a5153f2b28a8c83ac3a29489cddd6b983560 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 10 Sep 2022 15:33:04 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-music.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/entrypoint-music.sh b/bin/entrypoint-music.sh index cdeee61..45ddc20 100755 --- a/bin/entrypoint-music.sh +++ b/bin/entrypoint-music.sh @@ -51,8 +51,8 @@ __mpd_start() { sleep 10 mpd /config/mpd/mpd.conf sleep 5 - if pgrep mpd &>/dev/null && ! mpc status | grep -q 'playing'; then - mpc play &>/dev/null + if pgrep mpd &>/dev/null; then + mpc status | grep -q 'playing' || mpc play &>/dev/null fi } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -