aboutsummaryrefslogtreecommitdiffstats
path: root/boot/music_vm_init.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-04-16 17:40:02 -0400
committerMarco Platania <platania@research.att.com>2018-04-16 17:40:02 -0400
commitd60cdf2bd31e6a8143aa5bc36ec7b12414c68523 (patch)
treef21b843079145b0dde5935be8283c03094571963 /boot/music_vm_init.sh
parent3fbdd9d7c13c4666a46f6b70884c2c509138b92f (diff)
Improve ONAP installation with Heat
- Stop Music containers before starting new ones - Update maven settings.xml in aaf_install Change-Id: I96f5c1a3c403f1b55ecf91c67f6929ca141fbfcb Issue-ID: INT-444 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot/music_vm_init.sh')
-rw-r--r--boot/music_vm_init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot/music_vm_init.sh b/boot/music_vm_init.sh
index 372cd33e..2241ed13 100644
--- a/boot/music_vm_init.sh
+++ b/boot/music_vm_init.sh
@@ -14,4 +14,11 @@ docker pull $NEXUS_DOCKER_REPO/onap/music/music:$DOCKER_IMAGE_VERSION
cd /opt/music/distribution/dockermusic
git pull
+
+#Stop existing docker containers (if any)
+if [ $(docker ps | wc -l) > 1 ]; then
+ ./music.sh stop
+ sleep 2
+fi
+
./music.sh start \ No newline at end of file