Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lsulak committed Sep 25, 2024
1 parent 07522a7 commit 9bf1d92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh

# These two are locations known and used in the Dockerfile.
CONFIG_LOCATION="/opt/config/resource.conf"
CUSTOM_CONFIG_LOCATION="/opt/config/resource.conf"
JAR_LOCATION="/opt/app/atum-service.jar"

if [ -f "${CONFIG_LOCATION}" ]; then
if [ -f "${CUSTOM_CONFIG_LOCATION}" ]; then
echo "Running with custom config"
java -Dconfig.file="${CONFIG_LOCATION}" -jar "${JAR_LOCATION}"
java -Dconfig.file="${CUSTOM_CONFIG_LOCATION}" -jar "${JAR_LOCATION}"
else
echo "Running with default config"
java -jar "${JAR_LOCATION}"
Expand Down

0 comments on commit 9bf1d92

Please sign in to comment.