Merge pull request #308 from linuxserver/develop-nonroot-consistency
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user