diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-09-20 02:43:58 +0000 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-09-20 02:45:28 +0000 |
commit | c55b3cedaf586a741d6bfbed6f5559b1c4d6ba6f (patch) | |
tree | 99b62951eb31f2ec11593b27afe165c5b039c143 /aai-traversal/src/main/resources | |
parent | c6557f9fc325d9cb5376b5c04096f059bdb46940 (diff) |
Fix the updateQuery to be run by aaiadmin
Also ensure that this is only run once when
the first time the container is started
so during restart this won't be triggered
Issue-ID: AAI-307
Change-Id: I31ea9e86c12b52083d8141e863e557f0c8b6b322
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-traversal/src/main/resources')
-rw-r--r-- | aai-traversal/src/main/resources/docker/docker-entrypoint.sh | 7 |
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}/*; |