Rebase to 3.21, support non-root operation

This commit is contained in:
thespad
2024-12-12 19:08:51 +00:00
parent c0f704510c
commit 28a11b9c95
7 changed files with 38 additions and 20 deletions

View File

@@ -3,7 +3,8 @@
mkdir -p /run/prowlarr-temp
# permissions
lsiown -R abc:abc \
/config \
/run/prowlarr-temp
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
lsiown -R abc:abc \
/config \
/run/prowlarr-temp
fi

View File

@@ -1,7 +1,14 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/prowlarr/bin s6-setuidgid abc /app/prowlarr/bin/Prowlarr \
-nobrowser -data=/config
if [[ -n ${LSIO_NON_ROOT_USER} ]]; then
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/prowlarr/bin /app/prowlarr/bin/Prowlarr \
-nobrowser -data=/config
else
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/prowlarr/bin s6-setuidgid abc /app/prowlarr/bin/Prowlarr \
-nobrowser -data=/config
fi