mirror of
https://github.com/casjaysdevdocker/navidrome
synced 2025-01-18 12:34:27 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
c8e0a5153f
commit
9e6ec0f00e
@ -48,11 +48,12 @@ __exec_bash() {
|
|||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
__mpd_start() {
|
__mpd_start() {
|
||||||
|
pgrep mpd &>/dev/null || mpd /config/mpd/mpd.conf
|
||||||
sleep 10
|
sleep 10
|
||||||
mpd /config/mpd/mpd.conf
|
|
||||||
sleep 5
|
|
||||||
if pgrep mpd &>/dev/null; then
|
if pgrep mpd &>/dev/null; then
|
||||||
mpc status | grep -q 'playing' || mpc play &>/dev/null
|
mpc status 2>&1 | grep -q 'playing' || mpc play &>/dev/null
|
||||||
|
else
|
||||||
|
echo "MPD seems to have not started" 1>&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user