Browse Source

chg: removed old ``hooks.d/*.sh`` script support.

raw-remaining-args
Valentin Lab 9 years ago
parent
commit
5f92d8b768
  1. 16
      bin/compose

16
bin/compose

@ -2474,22 +2474,6 @@ if [ "$full_init" ]; then
run_service_relations "$services" || exit 1
fi
## XXXvlab: to be removed when all relation and service stuff is resolved
if [ -z "$no_hooks" ]; then
ordered_services=$(get_ordered_service_dependencies $services) || exit 1
for service in $ordered_services; do
charm=$(get_service_charm "$service") || exit 1
for script in "$CHARM_STORE/$charm/hooks.d/"*.sh; do
[ -e "$script" ] || continue
[ -x "$script" ] || { echo "compose: script $script is not executable." >&2; exit 1; }
(
debug "Launching '$script'."
cd "$(dirname "$script)")";
"$script" "$@"
) || { echo "compose: hook $script failed. Stopping." >&2; exit 1; }
done
done
fi
fi
export SERVICE_PACK="$services"

Loading…
Cancel
Save