Skip to content

Commit

Permalink
minor cleanup and improved readability in entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekmore committed Dec 19, 2024
1 parent d3a5b74 commit b1fc563
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

echo "The application will start in ${JHIPSTER_SLEEP}s..." && sleep ${JHIPSTER_SLEEP}
echo "The application will start in ${JHIPSTER_SLEEP}s..." && sleep "${JHIPSTER_SLEEP}"

# usage: file_env VAR [DEFAULT]
# ie: file_env 'XYZ_DB_PASSWORD' 'example'
Expand Down Expand Up @@ -38,4 +38,10 @@ file_env 'SPRING_LIQUIBASE_PASSWORD'
<%_ } _%>
file_env 'JHIPSTER_REGISTRY_PASSWORD'

exec java ${JAVA_OPTS} -noverify -XX:+AlwaysPreTouch -Djava.security.egd=file:/dev/./urandom -cp /app/resources/:/app/classes/:/app/libs/* "<%= packageName %>.<%= mainClass %>" "$@"
exec java "${JAVA_OPTS}" \
-noverify \
-XX:+AlwaysPreTouch \
-Djava.security.egd=file:/dev/./urandom \
-cp /app/resources/:/app/classes/:/app/libs/* \
"<%= packageName %>.<%= mainClass %>" \
"$@"

0 comments on commit b1fc563

Please sign in to comment.