From 13c16b374b01315275979f31e6709ffadd05dff3 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Fri, 13 Oct 2017 10:58:32 -0400 Subject: Fix consul binary unzipping in DockerBp Change-Id: I2c7435f3127cc472521101554f57dcb41ec4a3fc Issue-Id: DCAEGEN2-151 Signed-off-by: Michael Hwang --- blueprints/DockerBP.yaml-template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blueprints/DockerBP.yaml-template b/blueprints/DockerBP.yaml-template index 32ee931..a64525d 100644 --- a/blueprints/DockerBP.yaml-template +++ b/blueprints/DockerBP.yaml-template @@ -129,8 +129,9 @@ inputs: # Download Consul from Nexus apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y -q unzip - curl -Ss https://releases.hashicorp.com/consul/0.8.3/consul_0.8.3_linux_amd64.zip > /opt/consul/bin/consul_0.8.3_linux_amd64.zip - unzip /opt/consul/bin/consul_0.8.3_linux_amd64.zip + CONSUL_BIN_DIR=/opt/consul/bin + curl -Ss https://releases.hashicorp.com/consul/0.8.3/consul_0.8.3_linux_amd64.zip > $CONSUL_BIN_DIR/consul_0.8.3_linux_amd64.zip + unzip $CONSUL_BIN_DIR/consul_0.8.3_linux_amd64.zip -d $CONSUL_BIN_DIR cat < /opt/consul/config/consul.json { "bind_addr" : "0.0.0.0", -- cgit 1.2.3-korg