Fix path to repository
[demo.git] / vnfs / vLBMS / scripts / v_lb_install.sh
index 1907488..18b00d1 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 NEXUS_ARTIFACT_REPO=$(cat /opt/config/nexus_artifact_repo.txt)
-#DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
-#if [[ "$DEMO_ARTIFACTS_VERSION" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi
+DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
+if [[ "$DEMO_ARTIFACTS_VERSION" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi
 NB_API_VERSION=$(cat /opt/config/nb_api_version.txt)
 INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt)
 CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
@@ -82,10 +82,10 @@ mv VESreporting_vLB /opt/VES/evel/evel-library/code/VESreporting
 mkdir honeycomb-api
 git init honeycomb-api
 cd honeycomb-api
-git remote add origin https://gerrit.onap.org/r/p/demo.git
+git remote add origin https://gerrit.onap.org/r/demo.git
 git config core.sparsecheckout true
 echo "vnfs/vLBMS/apis" >> .git/info/sparse-checkout
-git pull --depth=1 origin beijing
+git pull --depth=1 origin master
 
 mkdir ~/.m2
 cat > ~/.m2/settings.xml << EOF