blob: 7a4b8dde3eff50c509ee78dc31c35aa869fb5ff9 [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 \
k.kedron2bafd082020-03-25 17:22:41 +01007 -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0"
k.kedron176a7602019-09-05 17:50:23 +02008
MichaelMorris70325ce2020-03-15 16:59:42 +00009cd /var/lib/jetty/chef-solo
k.kedron176a7602019-09-05 17:50:23 +020010chef-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
MichaelMorris70325ce2020-03-15 16:59:42 +000021exec "$@";