Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 3 | cd /var/lib/jetty/chef-solo |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 4 | chef-solo -c solo.rb -E ${ENVNAME} |
| 5 | rc=$? |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 6 | if [ $rc -ne 0 ]; then |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 7 | echo "Chef exaction failed." |
| 8 | exit $rc; |
| 9 | fi |
| 10 | |
| 11 | |
| 12 | JAVA_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-P | 72d62fb | 2018-03-29 17:46:39 +0530 | [diff] [blame] | 16 | -Dconfiguration.yaml=${JETTY_BASE}/config/onboarding-be/onboarding_configuration.yaml \ |
| 17 | -Dconfig.location=${JETTY_BASE}/config/onboarding-be/." |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 18 | |
| 19 | cd /var/lib/jetty |
| 20 | |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 21 | java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar" |