Browse Source

fix: ``run-once`` service relying on sub-services would not have there sub-service called.

For instance ``letsencrypt`` would rely on ``cron``, and if not
explicitely mentionned in base of ``compose.yml``, ``compose up``
would not launch ``cron``.
hostresources
Valentin Lab 5 years ago
parent
commit
c6693f56cb
  1. 2
      bin/compose-core

2
bin/compose-core

@ -3969,7 +3969,7 @@ if [ "$is_docker_compose_action" -a "${#services_args[@]}" -gt 0 ]; then
services=($(get_master_services "${services_args[@]}")) || exit 1
if [ "$action" == "up" ]; then
## remove run-once
for service in "${services_args[@]}"; do
for service in $(get_ordered_service_dependencies "${services_args[@]}"); do
type="$(get_service_type "$service")" || exit 1
if [ "$type" != "run-once" ]; then
action_posargs+=("$service")

Loading…
Cancel
Save