🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay
2022-09-10 14:37:49 -04:00
parent e50e53fc39
commit 336d44d379
3 changed files with 21 additions and 14 deletions

View File

@@ -47,6 +47,14 @@ __exec_bash() {
return ${exitCode:-$?}
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__mpd_start() {
sleep 10
mpd /config/mpd/mpd.conf
sleep 5
if pgrep mpd &>/dev/null && mpc status | grep -qv 'playing'; then
mpc play &>/dev/null
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Define default variables
TZ="${TZ:-America/New_York}"
HOSTNAME="${HOSTNAME:-casjaysdev-bin}"
@@ -137,7 +145,7 @@ healthcheck) # Docker healthcheck
*) # Execute primary command
if [ $# -eq 0 ]; then
mpd "/config/mpd/mpd.conf"
__mpd_start &
navidrome --configfile "/config/navidrome/navidrome.toml"
else
__exec_bash "$@"