Make checks consistent between init and svc
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
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
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||
cd /app/prowlarr/bin s6-setuidgid abc /app/prowlarr/bin/Prowlarr \
|
||||
-nobrowser -data=/config
|
||||
else
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||
cd /app/prowlarr/bin /app/prowlarr/bin/Prowlarr \
|
||||
-nobrowser -data=/config
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user