Add s6 overlay for drop2beets

This commit is contained in:
Danny Trunk 2025-12-30 15:37:58 +01:00
parent b03400c74c
commit f5cfc0cb13
5 changed files with 18 additions and 0 deletions

View file

@ -83,6 +83,7 @@ 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."}

View 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

View file

@ -0,0 +1 @@
longrun