aboutsummaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main/resources/docker
diff options
context:
space:
mode:
Diffstat (limited to 'aai-traversal/src/main/resources/docker')
-rw-r--r--aai-traversal/src/main/resources/docker/docker-entrypoint.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
index 464683a..5823105 100644
--- a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
+++ b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
@@ -60,7 +60,12 @@ if [ -z ${DISABLE_UPDATE_QUERY} ]; then
sleep 5;
done
- /opt/app/aai-traversal/bin/install/updateQueryData.sh
+ UPDATE_QUERY_RAN_FILE="updateQueryRan.txt";
+
+ if [ ! -f ${UPDATE_QUERY_RAN_FILE} ]; then
+ gosu aaiadmin /opt/app/aai-traversal/bin/install/updateQueryData.sh
+ touch ${UPDATE_QUERY_RAN_FILE};
+ fi
fi
CP=${COMMONLIBS_HOME}/*;