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 | ||||
9 | echo "Sanity failed !!!" | ||||
10 | exit $rc | ||||
11 | else | ||||
12 | echo "completed successfully :-)" | ||||
13 | exit 0 | ||||
14 | fi |