Fix arion exec

The service name was still hardcoded.
This commit is contained in:
Robert Hensing 2019-03-28 13:08:11 +01:00
parent 1726ef45f1
commit c1e2e726c6

View file

@ -262,7 +262,7 @@ run_exec() {
jq < "$docker_compose_yaml" \
--arg serviceName "$serviceName" \
-r \
'.["x-arion"].serviceInfo.webserver.defaultExec | tostream | .[1] | select(.)'
'.["x-arion"].serviceInfo[$serviceName].defaultExec | tostream | .[1] | select(.)'
)
docker-compose -f $docker_compose_yaml exec "$serviceName" "${default_args[@]}"
;;