|
@ -97,12 +97,10 @@ set -e |
|
|
containers="$(get_running_containers_for_service "$RELATION_TARGET_SERVICE")" |
|
|
containers="$(get_running_containers_for_service "$RELATION_TARGET_SERVICE")" |
|
|
|
|
|
|
|
|
if [ -z "$containers" ]; then |
|
|
if [ -z "$containers" ]; then |
|
|
err "No containers running for service $DARKYELLOW$service$NORMAL." |
|
|
|
|
|
|
|
|
err "No containers running for service $DARKYELLOW$RELATION_TARGET_SERVICE$NORMAL." |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## XXXvlab: taking first container is probably not a good idea |
|
|
## XXXvlab: taking first container is probably not a good idea |
|
|
container_id="$(echo "$containers" | head -n 1)" |
|
|
container_id="$(echo "$containers" | head -n 1)" |
|
|
docker exec -i -u 0 \ |
|
|
docker exec -i -u 0 \ |
|
|