Grinberg Moti | cd6eeaa | 2017-02-23 14:26:04 +0200 | [diff] [blame] | 1 | #!/bin/bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 2 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 3 | cd /root/chef-solo |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 4 | chef-solo -c solo.rb -E ${ENVNAME} |
| 5 | |
| 6 | rc=$? |
| 7 | |
| 8 | if [[ $rc != 0 ]]; then |
kaihlavi | 02f4880 | 2019-07-30 19:23:52 +0300 | [diff] [blame] | 9 | echo "Startup failed !!!" |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 10 | exit $rc |
| 11 | else |
kaihlavi | 02f4880 | 2019-07-30 19:23:52 +0300 | [diff] [blame] | 12 | # Note that the output below is monitored in CSIT by |
| 13 | # sdc/sdc-os-chef/scripts/docker_run.sh |
| 14 | # If this text is changed, docker_run.sh check for sdc-api-tests docker |
| 15 | # startup must be adjusted accordingly! |
| 16 | echo "Startup completed successfully" |
| 17 | fi |