Advertisement
Guest User

testing

a guest
Jul 25th, 2017
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. CONFLUENCE_CONFIG_FILE="/opt/synchrony/confluence.cfg.xml"
  4.  
  5. ## Set some variables and find the node IP's
  6. CONFLUENCE_BASEURL="http://localhost:8090/"
  7. SYNCHRONY_LOG="/opt/synchrony/atlassian-synchrony.log"
  8. SYNCHRONY_SERVER_IP="1.2.3.4"
  9. #JWT_PRIVATE_KEY=$(cat ${CONFLUENCE_CONFIG_FILE} | grep 'jwt.private.key\">' | cut -f2 -d">" | cut -f1 -d"<")
  10. #JWT_PUBLIC_KEY=$(cat ${CONFLUENCE_CONFIG_FILE} | grep 'jwt.public.key\">' | cut -f2 -d">" | cut -f1 -d"<")
  11. DATABASE_URL="jdbc:oracle:thin:@clu-um-dal-scan.prod.edc.equifax.com:1521:DUMUSDLC_DAL_APP"
  12. DATABASE_USER=$(cat ${CONFLUENCE_CONFIG_FILE} | grep 'hibernate.connection.username\">' | cut -f2 -d">" | cut -f1 -d"<")
  13. DATABASE_PASSWORD=$(cat ${CONFLUENCE_CONFIG_FILE} | grep 'hibernate.connection.password\">' | cut -f2 -d">" | cut -f1 -d"<")
  14. DATABASE_DRIVER_PATH="/opt/synchrony/ojdbc-8.jar"
  15. SYNCHRONY_CLASSPATH="/opt/synchrony/synchrony-6_2_4.jar"
  16. SYNCHRONY_CONTEXT_PATH="/synchrony"
  17. SYNCHRONY_SERVICE_URL="http://uat.confluence.equifax.com/synchrony"
  18. SYNCHRONY_PID="/opt/synchrony/synchrony.pid"
  19. _RUNJAVA="/opt/java/jdk1.8.0_131/bin/java -Xms2048k -Xmx2g"
  20.  
  21. SYNCHRONY_PROPERTIES="\
  22. -classpath ${SYNCHRONY_CLASSPATH}:${DATABASE_DRIVER_PATH} \
  23. -Dsynchrony.cluster.impl=hazelcast-btf \
  24. -Dsynchrony.port=8091 \
  25. -Dcluster.listen.port=5701 \
  26. -Dsynchrony.cluster.base.port=25500 \
  27. -Dcluster.join.type=tcpip \
  28. -Dcluster.join.tcpip.members=${SYNCHRONY_SERVER_IP} \
  29. -Dsynchrony.context.path=${SYNCHRONY_CONTEXT_PATH} \
  30. -Dsynchrony.cluster.bind=${SYNCHRONY_SERVER_IP} \
  31. -Dsynchrony.bind=${SYNCHRONY_SERVER_IP} \
  32. -Dcluster.interfaces=${SYNCHRONY_SERVER_IP} \
  33. -Dsynchrony.service.url=${SYNCHRONY_SERVICE_URL} \
  34. -Djwt.private.key=${JWT_PRIVATE_KEY} \
  35. -Djwt.public.key=${JWT_PUBLIC_KEY} \
  36. -Dsynchrony.database.url=${DATABASE_URL} \
  37. -Dsynchrony.database.username=${DATABASE_USER} \
  38. -Dsynchrony.database.password=${DATABASE_PASSWORD} \
  39. -Djava.net.preferIPv4Stack=true \
  40. -Dip.whitelist=127.0.0.1,localhost"
  41.  
  42.  
  43. "(${_RUNJAVA} ${SYNCHRONY_PROPERTIES} -jar /opt/synchrony/synchrony-6_2_4.jar synchrony.core sql & ) >> ${SYNCHRONY_LOG} 2>&1"
  44. echo "Started synchrony locally..."
  45. echo "Cluster Bind = $SYNCHRONY_SERVER_IP:8091"
  46. echo "SYNCHRONY SERVICE URL = $SYNCHRONY_SERVICE_URL"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement