Stone, Avi (as206k) | 530230e | 2018-05-17 10:25:42 +0300 | [diff] [blame^] | 1 | #!/bin/sh |
2 | set -x | ||||
3 | # Run chef-solo for configuration | ||||
4 | cd /var/opt/dcae-tools/chef-solo | ||||
5 | chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/tmp/Chef-Solo.log" | ||||
6 | |||||
7 | status=$? | ||||
8 | if [ $status != 0 ]; then | ||||
9 | echo "[ERROR] Problem detected while running chef. Aborting !" | ||||
10 | exit 1 | ||||
11 | fi | ||||
12 | |||||
13 | # Execute DCAE tools | ||||
14 | cd /var/opt/dcae-tools/app | ||||
15 | java -jar dcaedt_tools.jar conf/environment.json conf/config.json | ||||
16 | |||||
17 | exec "$@"; |