summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
authorKajur, Harish (vk250x) <vk250x@att.com>2018-03-21 19:51:39 -0400
committerKajur, Harish (vk250x) <vk250x@att.com>2018-03-28 16:02:27 -0400
commit6da2faa2bbf183f43365ddad786a5aa945d5ed98 (patch)
tree7b02f35f0b5932e418ae45aaffacd15d737dd432 /aai-traversal/src/main/docker/docker-entrypoint.sh
parent248c5f89fdf9505c2e81129ad7d95c0ee86de517 (diff)
Update the titan code to janus graph code
Issue-ID: AAI-949 Change-Id: Iabb282fb808742d2cc09791a189a5372a01f5be2 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'aai-traversal/src/main/docker/docker-entrypoint.sh')
-rw-r--r--aai-traversal/src/main/docker/docker-entrypoint.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/aai-traversal/src/main/docker/docker-entrypoint.sh b/aai-traversal/src/main/docker/docker-entrypoint.sh
index efaba95..8e52f0b 100644
--- a/aai-traversal/src/main/docker/docker-entrypoint.sh
+++ b/aai-traversal/src/main/docker/docker-entrypoint.sh
@@ -35,10 +35,6 @@ USER_ID=${LOCAL_USER_ID:-9001}
GROUP_ID=${LOCAL_GROUP_ID:-9001}
if [ $(cat /etc/passwd | grep aaiadmin | wc -l) -eq 0 ]; then
-
- ln -s bin scripts
- ln -s /opt/aai/logroot/AAI-GQ logs
-
groupadd aaiadmin -g ${GROUP_ID} || {
echo "Unable to create the group id for ${GROUP_ID}";
exit 1;
@@ -53,7 +49,12 @@ chown -R aaiadmin:aaiadmin /opt/app /opt/aai/logroot /var/chef
find /opt/app/ -name "*.sh" -exec chmod +x {} +
if [ -f ${APP_HOME}/aai.sh ]; then
+
+ gosu aaiadmin ln -s bin scripts
+ gosu aaiadmin ln -s /opt/aai/logroot/AAI-GQ logs
+
mv ${APP_HOME}/aai.sh /etc/profile.d/aai.sh
+
chmod 755 /etc/profile.d/aai.sh
fi;
@@ -114,6 +115,6 @@ JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom";
JAVA_OPTS="${JAVA_OPTS} -Dloader.path=$APP_HOME/resources";
JAVA_OPTS="${JAVA_OPTS} ${POST_JAVA_OPTS}";
-JAVA_MAIN_JAR=$(ls lib/aai-traversal-*SNAPSHOT.jar);
+JAVA_MAIN_JAR=$(ls lib/aai-traversal*.jar);
${JAVA_CMD} ${JVM_OPTS} ${JAVA_OPTS} -jar ${JAVA_MAIN_JAR};