feat: add the ability to disable the init process
This allows projects using s6 overlay - in particular linxserver images - the ability to disable --init flag injection. Closes #5287
This commit is contained in:
1 parent
6a3933213c
commit
c4c6ac5617
5 files changed
+21
-3
No files matched your search
@@ -9,13 +9,13 @@ cmd-scheduler-docker-local-set() {
|
||||
declare cmd="scheduler-docker-local:set"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1" KEY="$2" VALUE="$3"
|
||||
local VALID_KEYS=("disable-chown" "parallel-schedule-count")
|
||||
local VALID_KEYS=("disable-chown" "init-process" "parallel-schedule-count")
|
||||
verify_app_name "$APP"
|
||||
|
||||
[[ -z "$KEY" ]] && dokku_log_fail "No key specified"
|
||||
|
||||
if ! fn-in-array "$KEY" "${VALID_KEYS[@]}"; then
|
||||
dokku_log_fail "Invalid key specified, valid keys include: disable-chown, parallel-schedule-count"
|
||||
dokku_log_fail "Invalid key specified, valid keys include: disable-chown, init-process, parallel-schedule-count"
|
||||
fi
|
||||
|
||||
if [[ -n "$VALUE" ]]; then
|
||||
|
||||
Reference in new issue
Block a user