Gary Wu | 73202cf | 2017-10-23 15:15:52 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | cd /opt |
| 4 | |
| 5 | if [ ! -x /opt/demo.sh ]; then |
| 6 | echo "Robot VM not initialized" |
| 7 | exit 2 |
| 8 | fi |
| 9 | |
| 10 | if [ ! -d eteshare/logs/demo ]; then |
| 11 | echo "09d8566ea45e43aa974cf447ed591d77" > /opt/config/openstack_tenant_id.txt |
| 12 | echo "gary_wu" > /opt/config/openstack_username.txt |
| 13 | echo $OS_PASSWORD_INPUT > /opt/config/openstack_password.txt |
| 14 | /bin/bash /opt/eteshare/config/vm_config2robot.sh |
| 15 | echo "test" | /opt/demo.sh init_robot |
| 16 | fi |
| 17 | |
| 18 | /opt/ete.sh health |