summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-21 06:14:55 +0000
committerLusheng Ji <lji@research.att.com>2017-09-21 06:15:04 +0000
commit9bedea048390ef26a9dd0b02ea703b8d0def7906 (patch)
tree33ae22edc83fef4de3e306f57d45370e9421e419 /scripts
parentd92d4485b1838c9942cba08458ceff29b0555206 (diff)
Modify CODE_SOURCE CODE_VERSION use
Issue-Id: DCAEGEN2-60 Change-Id: I64068defd859a3c077b730473ba735489e81e971 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cdap-init.sh7
1 files changed, 6 insertions, 1 deletions
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 </dev/null &'
(cd /bin; wget https://raw.githubusercontent.com/caskdata/cdap-monitoring-tools/develop/nagios/check_cdap/bin/check_cdap)
chmod 755 /bin/check_cdap
- wget -qO- $CODE_SOURCE/${CODE_VERSION}/raw/cloud_init/instconsulagentub16.sh >/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 <<!EOF
{
"bind_addr": "0.0.0.0",