diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-08-04 14:16:00 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-09-08 13:45:31 +0200 |
commit | 30670accb070b20c1c770d1ebbd6d72e24fee2db (patch) | |
tree | 8ddb5d70500aa1b3baa4e262de411e8394e22e6a /catalog-be/sdc-backend/startup.sh | |
parent | a8a96339680fa1c4df5577285442e902b5637631 (diff) |
Upgrade to java 11
MOve SDC to Java 11, this is one of the PR to move to Jdk 11, jenkins will have to be changed as well
Issue-ID: SDC-2725
Change-Id: I85f13f14ba8004f6e9656093a837465a2e4af3e1
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Signed-off-by: xuegao <xg353y@intl.att.com>
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'catalog-be/sdc-backend/startup.sh')
-rw-r--r-- | catalog-be/sdc-backend/startup.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/catalog-be/sdc-backend/startup.sh b/catalog-be/sdc-backend/startup.sh index 4f5ef8ca2e..0dc54a8849 100644 --- a/catalog-be/sdc-backend/startup.sh +++ b/catalog-be/sdc-backend/startup.sh @@ -15,18 +15,16 @@ cd /var/lib/jetty/chef-solo chef-solo -c solo.rb -E ${ENVNAME} status=$? -if [ $status != 0 ]; then +if [ $status -ne 0 ]; then echo "[ERROR] Problem detected while running chef. Aborting !" exit 1 fi # Execute Jetty cd /var/lib/jetty -/docker-entrypoint.sh & -exec "$@"; +java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar" -while true; do sleep 2; done |