Gary Wu | 4aa2aee | 2017-11-09 11:42:15 -0800 | [diff] [blame^] | 1 | #!/bin/bash -x |
Gary Wu | 73202cf | 2017-10-23 15:15:52 -0700 | [diff] [blame] | 2 | |
| 3 | cd /opt |
| 4 | |
Gary Wu | 4aa2aee | 2017-11-09 11:42:15 -0800 | [diff] [blame^] | 5 | docker ps | grep -q openecompete_container |
| 6 | if [ ! $? -eq 0 ]; then |
| 7 | echo "Robot not initialized" |
Gary Wu | 73202cf | 2017-10-23 15:15:52 -0700 | [diff] [blame] | 8 | exit 2 |
| 9 | fi |
| 10 | |
| 11 | if [ ! -d eteshare/logs/demo ]; then |
| 12 | echo "09d8566ea45e43aa974cf447ed591d77" > /opt/config/openstack_tenant_id.txt |
| 13 | echo "gary_wu" > /opt/config/openstack_username.txt |
| 14 | echo $OS_PASSWORD_INPUT > /opt/config/openstack_password.txt |
| 15 | /bin/bash /opt/eteshare/config/vm_config2robot.sh |
Gary Wu | 4aa2aee | 2017-11-09 11:42:15 -0800 | [diff] [blame^] | 16 | # set robot VM http server password |
| 17 | echo "admin" | /opt/demo.sh init_robot |
Gary Wu | 73202cf | 2017-10-23 15:15:52 -0700 | [diff] [blame] | 18 | fi |
| 19 | |
| 20 | /opt/ete.sh health |