blob: cf1b6227adebd1662672053a07567a9978906617 [file] [log] [blame]
Avi Zivc175a0d2018-03-15 13:21:44 +02001#!/bin/sh
2
MichaelMorrisa2abf6e2020-03-10 12:37:48 +00003cd /var/lib/jetty/chef-solo
Avi Zivc175a0d2018-03-15 13:21:44 +02004chef-solo -c solo.rb -E ${ENVNAME}
5rc=$?
sebdet30670ac2020-08-04 14:16:00 +02006if [ $rc -ne 0 ]; then
Avi Zivc175a0d2018-03-15 13:21:44 +02007 echo "Chef exaction failed."
8 exit $rc;
9fi
10
11
12JAVA_OPTIONS=" ${JAVA_OPTIONS} \
13 -Dconfig.home=${JETTY_BASE}/config \
14 -Dlog.home=${JETTY_BASE}/logs \
15 -Dlogback.configurationFile=${JETTY_BASE}/config/onboarding-be/logback.xml \
Murali-P72d62fb2018-03-29 17:46:39 +053016 -Dconfiguration.yaml=${JETTY_BASE}/config/onboarding-be/onboarding_configuration.yaml \
17 -Dconfig.location=${JETTY_BASE}/config/onboarding-be/."
Avi Zivc175a0d2018-03-15 13:21:44 +020018
19cd /var/lib/jetty
20
sebdet30670ac2020-08-04 14:16:00 +020021java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar"