summaryrefslogtreecommitdiffstats
path: root/boot/appc_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/appc_vm_init.sh')
-rw-r--r--boot/appc_vm_init.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot/appc_vm_init.sh b/boot/appc_vm_init.sh
index 1692a074..bbcf7128 100644
--- a/boot/appc_vm_init.sh
+++ b/boot/appc_vm_init.sh
@@ -6,8 +6,10 @@ NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
DMAAP_TOPIC=$(cat /opt/config/dmaap_topic.txt)
cd /opt/appc
+git pull
+cd /opt/appc/docker-compose
-sed -i "s/DMAAP_TOPIC_ENV=.*/DMAAP_TOPIC_ENV="$DMAAP_TOPIC"/g" /opt/appc/docker-compose.yml
+sed -i "s/DMAAP_TOPIC_ENV=.*/DMAAP_TOPIC_ENV="$DMAAP_TOPIC"/g" docker-compose.yml
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
/opt/docker/docker-compose pull