Merge pull request #308 from linuxserver/develop-nonroot-consistency

This commit is contained in:
Adam
2024-12-20 09:51:48 +00:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

2
Jenkinsfile vendored
View File

@@ -32,7 +32,7 @@ pipeline {
CI_WEB='true'
CI_PORT='8989'
CI_SSL='false'
CI_DELAY='120'
CI_DELAY='240'
CI_DOCKERENV=''
CI_AUTH=''
CI_WEBPATH='/system/status'

View File

@@ -21,7 +21,7 @@ repo_vars:
- CI_WEB='true'
- CI_PORT='8989'
- CI_SSL='false'
- CI_DELAY='120'
- CI_DELAY='240'
- CI_DOCKERENV=''
- CI_AUTH=''
- CI_WEBPATH='/system/status'

View File

@@ -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/sonarr/bin /app/sonarr/bin/Sonarr \
-nobrowser -data=/config
else
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
-nobrowser -data=/config
else
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/sonarr/bin /app/sonarr/bin/Sonarr \
-nobrowser -data=/config
fi