blob: 162acbe24dc2769b317ba7a0f50ff3a894f5c811 [file] [log] [blame]
Gary Wu4aa2aee2017-11-09 11:42:15 -08001#!/bin/bash -x
Gary Wu73202cf2017-10-23 15:15:52 -07002
3cd /opt
4
Gary Wu4aa2aee2017-11-09 11:42:15 -08005docker ps | grep -q openecompete_container
6if [ ! $? -eq 0 ]; then
7 echo "Robot not initialized"
Gary Wu73202cf2017-10-23 15:15:52 -07008 exit 2
9fi
10
11if [ ! -d eteshare/logs/demo ]; then
Gary Wu0689e122017-11-09 13:10:17 -080012 echo $OS_PROJECT_ID > /opt/config/openstack_tenant_id.txt
13 echo $OS_USERNAME > /opt/config/openstack_username.txt
14 echo $OS_PASSWORD > /opt/config/openstack_password.txt
Gary Wu73202cf2017-10-23 15:15:52 -070015 /bin/bash /opt/eteshare/config/vm_config2robot.sh
Gary Wu4aa2aee2017-11-09 11:42:15 -080016 # set robot VM http server password
17 echo "admin" | /opt/demo.sh init_robot
Gary Wu73202cf2017-10-23 15:15:52 -070018fi
19
20/opt/ete.sh health