diff options
author | Marco Platania <platania@research.att.com> | 2017-05-30 16:22:10 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-05-30 16:22:10 -0400 |
commit | b54c8f4229ce102767c3dd676addf3d8d8e39161 (patch) | |
tree | 3ccfd1fc5f3d6c15788224af09df7aee0310f5b8 /boot/aai2_vm_init.sh | |
parent | b29bcee4fe37639d957e92ecd91317371f263d43 (diff) |
Add A&AI-VM2 config
Change-Id: I888f584a4c2a8b1cc3fc91a0ce884b17d165be19
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot/aai2_vm_init.sh')
-rw-r--r-- | boot/aai2_vm_init.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/boot/aai2_vm_init.sh b/boot/aai2_vm_init.sh new file mode 100644 index 00000000..ffe0955f --- /dev/null +++ b/boot/aai2_vm_init.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +AAI_INSTANCE=$(cat /opt/config/aai_instance.txt) + +cd /opt/test-config +git pull + +if [[ $AAI_INSTANCE == "aai_instance_1" ]] +then + ./deploy_vm1.sh +elif [[ $AAI_INSTANCE == "aai_instance_2" ]] +then + ./deploy_vm2.sh +else + echo "Invalid instance. Exiting..." +fi |