From 9bedea048390ef26a9dd0b02ea703b8d0def7906 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Thu, 21 Sep 2017 06:14:55 +0000 Subject: Modify CODE_SOURCE CODE_VERSION use Issue-Id: DCAEGEN2-60 Change-Id: I64068defd859a3c077b730473ba735489e81e971 Signed-off-by: Lusheng Ji --- scripts/cdap-init.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cdap-init.sh b/scripts/cdap-init.sh index d4f1715..d3c1b08 100644 --- a/scripts/cdap-init.sh +++ b/scripts/cdap-init.sh @@ -345,7 +345,12 @@ then su - hive -c 'nohup /usr/hdp/current/hive-metastore/bin/hive --service metastore >>/var/log/hive/hive.out 2>>/var/log/hive/hive.log /tmp/cinst.sh + # lji: making more flexible: + # for LF nexus: + # CODE_SOURCE='https://nexus.onap.org/service/local/repositories/raw/content' + # CODE_VERSION=org.onap.dcaegen2.deployments/releases/scripts + #wget -qO- $CODE_SOURCE/${CODE_VERSION}/raw/cloud_init/instconsulagentub16.sh >/tmp/cinst.sh + wget -qO- $CODE_SOURCE/${CODE_VERSION}/instconsulagentub16.sh >/tmp/cinst.sh bash /tmp/cinst.sh <