diff --git a/modules/s2i/bash/artifacts/local/run b/modules/s2i/bash/artifacts/local/run index 0c6f5718..e5e644bd 100755 --- a/modules/s2i/bash/artifacts/local/run +++ b/modules/s2i/bash/artifacts/local/run @@ -13,10 +13,5 @@ s2i_core_env_init export JAVA_OPTS -if [ -f "${S2I_TARGET_DEPLOYMENTS_DIR}/bin/run.sh" ]; then - echo "Starting the application using the bundled ${S2I_TARGET_DEPLOYMENTS_DIR}/bin/run.sh ..." - exec ${DEPLOYMENTS_DIR}/bin/run.sh $args ${JAVA_ARGS} -else - echo "Starting the Java application using ${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh $args..." - exec "${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh" $args ${JAVA_ARGS} -fi +echo "Starting the Java application using ${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh $args ${JAVA_ARGS}…" +exec "${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh" $args ${JAVA_ARGS}