🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-06 23:58:51 -04:00
parent a24843c3bd
commit 5e870c9583
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 13 additions and 6 deletions

View File

@ -97,7 +97,12 @@ fi
if [ ! -L "/etc/nginx/http.d/default.conf" ]; then
ln -sf "/config/nginx/navidrome.conf" "/etc/nginx/http.d/default.conf"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! pgrep mpd &>/dev/null; then
[ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
chmod 777 -R /data/mpd /data/navidrome /data/music /data/playlists
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case "$1" in
--help) # Help message
@ -109,9 +114,10 @@ case "$1" in
;;
healthcheck) # Docker healthcheck
echo "$(uname -s) $(uname -m) is running"
echo _other_commands here
exitCode=$?
pgrep mpd &>/dev/null &&
pgrep nginx &>/dev/null &&
pgrep navidrome &>/dev/null
exit $?
;;
*/bin/sh | */bin/bash | bash | shell | sh) # Launch shell
@ -122,8 +128,8 @@ healthcheck) # Docker healthcheck
*) # Execute primary command
if [ $# -eq 0 ]; then
[ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid"
mpd --no-daemon /config/mpd/mpd.conf &
nginx
mpd /config/mpd/mpd.conf
navidrome --configfile /config/navidrome/navidrome.toml
else
__exec_bash "/bin/bash"

View File

@ -13,3 +13,4 @@ server {
proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off;
}
}