Commit 6ed953b0 authored by Martin Peres's avatar Martin Peres
Browse files

initscript: do not setup/teardown containers if we have none to run

parent 873e3ed0
......@@ -406,10 +406,12 @@ function run_containers {
B2C_PIPELINE_PREV_CONTAINER=""
B2C_PIPELINE_PREV_CONTAINER_EXIT_CODE=""
setup_container_runtime
start_containers "$ARG_CONTAINER"
start_post_containers "$ARG_POST_CONTAINER"
container_cleanup
if [ -n "$ARG_CONTAINER$ARG_POST_CONTAINER" ]; then
setup_container_runtime
start_containers "$ARG_CONTAINER"
start_post_containers "$ARG_POST_CONTAINER"
container_cleanup
fi
}
# Do not print all the early commands
......
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