mirror of
https://github.com/linuxserver/docker-beets
synced 2026-01-20 23:22:49 +01:00
Merge f5cfc0cb13 into 6aaf05a556
This commit is contained in:
commit
6cab6c11e5
14 changed files with 40 additions and 14 deletions
|
|
@ -88,7 +88,8 @@ RUN \
|
|||
requests \
|
||||
requests_oauthlib \
|
||||
typing-extensions \
|
||||
unidecode && \
|
||||
unidecode \
|
||||
shyaml && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ RUN \
|
|||
requests \
|
||||
requests_oauthlib \
|
||||
typing-extensions \
|
||||
unidecode && \
|
||||
unidecode \
|
||||
shyaml && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
|
|
|
|||
|
|
@ -256,6 +256,7 @@ serd-libs 0.32.2-r0 apk
|
|||
shaderc 2024.0-r2 apk
|
||||
shadow 4.16.0-r1 apk
|
||||
shared-mime-info 2.4-r2 apk
|
||||
shyaml 0.6.2 python
|
||||
six 1.17.0 python
|
||||
skalibs-libs 2.14.3.0-r0 apk
|
||||
sord-libs 0.16.16-r0 apk
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@ init_diagram: |
|
|||
"beets:latest" <- Base Images
|
||||
# changelog
|
||||
changelogs:
|
||||
- {date: "30.12.25:", desc: "Add s6 overlay for drop2beets"}
|
||||
- {date: "30.12.25:", desc: "Check if plugin web is enabled before running"}
|
||||
- {date: "27.01.25:", desc: "Rebase to Alpine 3.21."}
|
||||
- {date: "01.10.24:", desc: "Add packages required for Discogs plugin."}
|
||||
- {date: "28.08.24:", desc: "Rebase to Alpine 3.20, switch from Pillow to Imagemagick."}
|
||||
|
|
|
|||
16
root/etc/s6-overlay/s6-rc.d/beets-web/run
Executable file
16
root/etc/s6-overlay/s6-rc.d/beets-web/run
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
plugins=$(beet config --default | shyaml get-value plugins)
|
||||
|
||||
if [[ " $plugins " == *" web "* ]]; then
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
|
||||
s6-setuidgid abc beet web
|
||||
else
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
|
||||
beet web
|
||||
fi
|
||||
fi
|
||||
16
root/etc/s6-overlay/s6-rc.d/drop2beets/run
Executable file
16
root/etc/s6-overlay/s6-rc.d/drop2beets/run
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if pip show drop2beets >/dev/null 2>&1; then
|
||||
plugins=$(beet config --default | shyaml get-value plugins)
|
||||
|
||||
if [[ " $plugins " == *" drop2beets "* ]]; then
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
exec \
|
||||
s6-setuidgid abc beet dropbox
|
||||
else
|
||||
exec \
|
||||
beet dropbox
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
1
root/etc/s6-overlay/s6-rc.d/drop2beets/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/drop2beets/type
Normal file
|
|
@ -0,0 +1 @@
|
|||
longrun
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
|
||||
s6-setuidgid abc beet web
|
||||
else
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
|
||||
beet web
|
||||
fi
|
||||
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/beets-web
Normal file
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/beets-web
Normal file
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/drop2beets
Normal file
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/drop2beets
Normal file
Loading…
Reference in a new issue