Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | export CHEFNAME=${ENVNAME} | ||||
4 | cd /root/chef-solo | ||||
5 | chef-solo -c solo.rb -E ${CHEFNAME} | ||||
6 | |||||
7 | rc=$? | ||||
8 | |||||
9 | if [[ $rc != 0 ]]; then | ||||
10 | echo "Sanity failed !!!" | ||||
11 | exit $rc | ||||
12 | else | ||||
13 | echo "completed successfully :-)" | ||||
14 | exit 0 | ||||
15 | fi | ||||
16 | |||||
17 | #/docker-entrypoint.sh |