Stone, Avi (as206k) | 530230e | 2018-05-17 10:25:42 +0300 | [diff] [blame] | 1 | #!/bin/sh |
k.kedron | 176a760 | 2019-09-05 17:50:23 +0200 | [diff] [blame^] | 2 | |
| 3 | JAVA_OPTIONS=" ${JAVA_OPTIONS} -Dconfig.home=${JETTY_BASE}/config \ |
| 4 | -Dlog.home=${JETTY_BASE}/logs \ |
| 5 | -Djetty.console-capture.dir=${JETTY_BASE}/logs \ |
| 6 | -Djavax.net.ssl.trustStore=${JETTY_BASE}/etc/org.onap.sdc.trust.jks \ |
| 7 | -Djavax.net.ssl.trustStorePassword=c+QY7@v1bQ!lo0c4ydi)))AV" |
| 8 | |
| 9 | cd /root/chef-solo |
| 10 | chef-solo -c solo.rb -E ${ENVNAME} |
Stone, Avi (as206k) | 530230e | 2018-05-17 10:25:42 +0300 | [diff] [blame] | 11 | |
| 12 | status=$? |
k.kedron | 64636c2 | 2019-08-28 14:31:52 +0200 | [diff] [blame] | 13 | if [[ ${status} != 0 ]]; then |
Stone, Avi (as206k) | 530230e | 2018-05-17 10:25:42 +0300 | [diff] [blame] | 14 | echo "[ERROR] Problem detected while running chef. Aborting !" |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
k.kedron | 176a760 | 2019-09-05 17:50:23 +0200 | [diff] [blame^] | 18 | cd ${JETTY_BASE}/webapps |
| 19 | java ${JAVA_OPTIONS} -jar dcaedt_tools.jar ../conf/environment.json ../conf/config.json |
Stone, Avi (as206k) | 530230e | 2018-05-17 10:25:42 +0300 | [diff] [blame] | 20 | |
| 21 | exec "$@"; |