summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdeploy_vm1.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy_vm1.sh b/deploy_vm1.sh
index 8660868..bf06952 100755
--- a/deploy_vm1.sh
+++ b/deploy_vm1.sh
@@ -79,7 +79,12 @@ function wait_for_container() {
done
}
-(cd /opt && git clone http://gerrit.onap.org/r/dcae/demo/startup/message-router && cd message-router && ./deploy.sh);
+if [ ! -d "/opt/message-router" ]; then
+ (cd /opt && \
+ git clone http://gerrit.onap.org/r/dcae/demo/startup/message-router && \
+ cd message-router && \
+ ./deploy.sh);
+fi
docker pull ${DOCKER_REGISTRY}/openecomp/aai-resources:${DOCKER_IMAGE_VERSION};
docker tag $DOCKER_REGISTRY/openecomp/aai-resources:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/openecomp/aai-resources:latest;