Commit 385c843d authored by Emeric Verschuur's avatar Emeric Verschuur

[FIX] service-privileged property variable name update

parent 7e4e14ed
......@@ -385,6 +385,10 @@ case "$command" in
update)
;;
*)
# Properties check
CITBX_DEFAULT_JOB_SHELL=${CITBX_DEFAULT_JOB_SHELL:-/bin/sh}
CITBX_DEFAULT_SERVICE_DOCKER_PRIVILEGED=${CITBX_DEFAULT_SERVICE_DOCKER_PRIVILEGED:-false}
# Command check
pattern='\b'"$command"'\b'
if ! [[ "${CITBX_JOB_LIST[*]}" =~ $pattern ]]; then
print_critical "Unreconized command; type '$0 help' to display the help"
......@@ -450,8 +454,8 @@ case "$command" in
-d "Use a specific shell to run the job"
bashopts_declare -n CITBX_WAIT_FOR_SERVICE_START -l wait-srv-started -t number -v 0 \
-d "Wait for service start (time in seconds)"
bashopts_declare -n CITBX_DEFAULT_SERVICE_DOCKER_PRIVILEGED -l service-privileged -t boolean \
-d "Start service docker container in privileged mode"
bashopts_declare -n CITBX_SERVICE_DOCKER_PRIVILEGED -l service-privileged -t boolean \
-d "Start service docker container in privileged mode" -v "$CITBX_DEFAULT_SERVICE_DOCKER_PRIVILEGED"
CITBX_DOCKER_USER=${CITBX_DOCKER_USER:-root}
# Load job
......@@ -681,7 +685,7 @@ case "$CITBX_JOB_EXECUTOR" in
if [ -n "$1" ]; then
args+=(--entrypoint "$1")
fi
if [ "$CITBX_DEFAULT_SERVICE_DOCKER_PRIVILEGED" == "true" ]; then
if [ "$CITBX_SERVICE_DOCKER_PRIVILEGED" == "true" ]; then
args+=(--privileged)
fi
shift || true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment