diff options
Diffstat (limited to 'docker/startup.sh')
-rw-r--r-- | docker/startup.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docker/startup.sh b/docker/startup.sh index 4f363da..00bda01 100644 --- a/docker/startup.sh +++ b/docker/startup.sh @@ -1,19 +1,19 @@ #!/bin/sh -#set -x -# Run chef-solo for configuration -cd /var/opt/dcae-dt/chef-solo -chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/opt/logs/dcae-dt/chef-dcae-dt.log" +JAVA_OPTIONS=" ${JAVA_OPTIONS} -Dconfig.home=${JETTY_BASE}/config + -Dlog.home=${JETTY_BASE}/logs + -Dlogback.configurationFile=${JETTY_BASE}/dcae-dt/logback-spring.xml" + +cd /root/chef-solo +chef-solo -c solo.rb -E ${ENVNAME} status=$? -if [ $status != 0 ]; then +if [[ ${status} != 0 ]]; then echo "[ERROR] Problem detected while running chef. Aborting !" exit 1 fi -# Execute Jetty cd /var/lib/jetty /docker-entrypoint.sh & while true; do sleep 2; done - |