blob: b9c3ea11f76233e4e8f347fecd1f2aea89812139 [file] [log] [blame]
Stone, Avi (as206k)530230e2018-05-17 10:25:42 +03001#!/bin/sh
k.kedron176a7602019-09-05 17:50:23 +02002
3JAVA_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
9cd /root/chef-solo
10chef-solo -c solo.rb -E ${ENVNAME}
Stone, Avi (as206k)530230e2018-05-17 10:25:42 +030011
12status=$?
k.kedron64636c22019-08-28 14:31:52 +020013if [[ ${status} != 0 ]]; then
Stone, Avi (as206k)530230e2018-05-17 10:25:42 +030014 echo "[ERROR] Problem detected while running chef. Aborting !"
15 exit 1
16fi
17
k.kedron176a7602019-09-05 17:50:23 +020018cd ${JETTY_BASE}/webapps
19java ${JAVA_OPTIONS} -jar dcaedt_tools.jar ../conf/environment.json ../conf/config.json
Stone, Avi (as206k)530230e2018-05-17 10:25:42 +030020
21exec "$@";