1 2 3 4 5 6
#!/bin/sh cd /root/chef-solo/ chef-solo -c solo.rb -E ${ENVNAME} rc=$? if [[ $rc != 0 ]]; then exit $rc; fi