Browse Source

new: [up] force ``-d`` option.

This will be required to allow special post-up scripts.
raw-remaining-args
Valentin Lab 9 years ago
parent
commit
07bb0775fd
  1. 8
      bin/compose

8
bin/compose

@ -652,9 +652,7 @@ array_pop() {
export -f array_pop
array_member() {
local src elt
src="$1"
elt="$2"
local src="$1" elt="$2"
while read-0 key; do
if [ "$(eval "echo -n \"\${$src[\$key]}\"")" == "$elt" ]; then
return 0
@ -2487,6 +2485,10 @@ export SERVICE_PACK="$services"
case "$action" in
up|start|stop|build)
master_services=$(get_master_services $SERVICE_PACK) || exit 1
if [[ "$action" == "up" ]] && ! array_member action_opts -d; then ## force daemon mode for up
action_opts=("-d" "${action_opts[@]}")
fi
launch_docker_compose "${compose_opts[@]}" "$action" "${action_opts[@]}" $master_services
;;
run)

Loading…
Cancel
Save