From d60cdf2bd31e6a8143aa5bc36ec7b12414c68523 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Mon, 16 Apr 2018 17:40:02 -0400 Subject: 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 --- boot/music_vm_init.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot/music_vm_init.sh') 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 -- cgit 1.2.3-korg