🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-07 00:33:05 -04:00
parent 5e870c9583
commit 35b08be08b
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
6 changed files with 14 additions and 1 deletions

View File

@ -19,7 +19,7 @@ RUN mkdir -p /bin/ /config/ /data/ && \
apk add mpd navidrome nginx
COPY ./bin/. /usr/local/bin/
COPY ./config/. /config/
COPY ./config/. /etc/
COPY ./data/. /data/
FROM scratch

View File

@ -98,6 +98,19 @@ if [ ! -L "/etc/nginx/http.d/default.conf" ]; then
ln -sf "/config/nginx/navidrome.conf" "/etc/nginx/http.d/default.conf"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/data/mpd" ] || mkdir -p "/data/mpd"
[ -d "/data/music" ] || mkdir -p "/data/music"
[ -d "/data/navidrome" ] || mkdir -p "/data/navidrome"
[ -d "/data/playlists" ] || mkdir -p "/data/playlists"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -d "/config/mpd" ] || mkdir -p "/config/mpd"
[ -d "/config/nginx" ] || mkdir -p "/config/nginx"
[ -d "/config/navidrome" ] || mkdir -p "/navidrome/mpd"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ -f "/config/mpd/mpd.conf" ] || cp -Rf "/etc/mpd.conf" "/config/mpd/mpd.conf"
[ -f "/config/nginx/navidrome.conf" ] || cp -Rf "/etc/nginx/navidrome.conf" "/config/navidrome.conf"
[ -f "/config/navidrome/navidrome.toml" ] || cp -Rf "/etc/navidrome/navidrome.toml" "/config/navidrome/navidrome.toml"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! pgrep mpd &>/dev/null; then
[ -f "/data/mpd/mpd.pid" ] && rm -Rf "/data/mpd/mpd.pid"
fi

View File

View File