summaryrefslogtreecommitdiffstats
path: root/boot/aai_vm_init.sh
blob: ffe0955f241e44226353ed16f22f66d0c1b4744e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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