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
a24843c3bd
commit
5e870c9583
@ -97,7 +97,12 @@ fi
|
|||||||
if [ ! -L "/etc/nginx/http.d/default.conf" ]; then
|
if [ ! -L "/etc/nginx/http.d/default.conf" ]; then
|
||||||
ln -sf "/config/nginx/navidrome.conf" "/etc/nginx/http.d/default.conf"
|
ln -sf "/config/nginx/navidrome.conf" "/etc/nginx/http.d/default.conf"
|
||||||
fi
|
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
|
case "$1" in
|
||||||
--help) # Help message
|
--help) # Help message
|
||||||
@ -109,9 +114,10 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
healthcheck) # Docker healthcheck
|
healthcheck) # Docker healthcheck
|
||||||
echo "$(uname -s) $(uname -m) is running"
|
pgrep mpd &>/dev/null &&
|
||||||
echo _other_commands here
|
pgrep nginx &>/dev/null &&
|
||||||
exitCode=$?
|
pgrep navidrome &>/dev/null
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*/bin/sh | */bin/bash | bash | shell | sh) # Launch shell
|
*/bin/sh | */bin/bash | bash | shell | sh) # Launch shell
|
||||||
@ -122,8 +128,8 @@ healthcheck) # Docker healthcheck
|
|||||||
|
|
||||||
*) # Execute primary command
|
*) # Execute primary command
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
[ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid"
|
nginx
|
||||||
mpd --no-daemon /config/mpd/mpd.conf &
|
mpd /config/mpd/mpd.conf
|
||||||
navidrome --configfile /config/navidrome/navidrome.toml
|
navidrome --configfile /config/navidrome/navidrome.toml
|
||||||
else
|
else
|
||||||
__exec_bash "/bin/bash"
|
__exec_bash "/bin/bash"
|
||||||
|
@ -12,4 +12,5 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Protocol $scheme;
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user