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 \ |
k.kedron | 2bafd08 | 2020-03-25 17:22:41 +0100 | [diff] [blame^] | 7 | -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0" |
k.kedron | 176a760 | 2019-09-05 17:50:23 +0200 | [diff] [blame] | 8 | |
MichaelMorris | 70325ce | 2020-03-15 16:59:42 +0000 | [diff] [blame] | 9 | cd /var/lib/jetty/chef-solo |
k.kedron | 176a760 | 2019-09-05 17:50:23 +0200 | [diff] [blame] | 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 | |
MichaelMorris | 70325ce | 2020-03-15 16:59:42 +0000 | [diff] [blame] | 21 | exec "$@"; |