summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aai-traversal/src/main/resources/docker/docker-entrypoint.sh')
-rw-r--r--aai-traversal/src/main/resources/docker/docker-entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
index d1231f2..59172a2 100644
--- a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
+++ b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
@@ -53,6 +53,11 @@ httpsPort=8446;
AAI_CORE_JAR=$(ls ${APP_HOME}/extJars/aai-core*.jar);
+# Get the basename of the aai-core-X.Y.Z-SNAPSHOT.jar
+# Then extract the X.Y.Z-SNAPSHOT part
+AAI_CORE_VERSION=$(basename ${AAI_CORE_JAR} | grep -o '[0-9]*\.[0-9]*\.[0-9]*[^.]*');
+
+
cd ${APP_HOME};
# If the variable DISABLE_UPDATE_QUERY is empty