Browse Source

new: added variable ``$CHARM_NAME`` in hooks.

raw-remaining-args
Valentin Lab 9 years ago
parent
commit
2a7422849f
  1. 1
      bin/compose

1
bin/compose

@ -724,6 +724,7 @@ run_service_hook () {
Wrap -d "$YELLOW$action$NORMAL hook of charm $DARKYELLOW$charm$NORMAL" <<EOF || return 1 Wrap -d "$YELLOW$action$NORMAL hook of charm $DARKYELLOW$charm$NORMAL" <<EOF || return 1
cd "$CHARM_STORE/$charm" cd "$CHARM_STORE/$charm"
SERVICE_NAME=$subservice \ SERVICE_NAME=$subservice \
CHARM_NAME="$charm" \
PROJECT_NAME=$PROJECT_NAME \ PROJECT_NAME=$PROJECT_NAME \
DOCKER_BASE_IMAGE=$(service_base_docker_image "$charm") \ DOCKER_BASE_IMAGE=$(service_base_docker_image "$charm") \
SERVICE_DATASTORE="$DATASTORE/$charm" \ SERVICE_DATASTORE="$DATASTORE/$charm" \

Loading…
Cancel
Save