Updated Branches: refs/heads/master c7dfb11f3 -> 012482efc
changes related to setting java truststore and password Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/c2242d73 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/c2242d73 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/c2242d73 Branch: refs/heads/master Commit: c2242d73cd885313b88964dc04031dfbe00f4a5a Parents: 00a32e1 Author: Isuru <[email protected]> Authored: Sat Dec 21 21:46:08 2013 +0530 Committer: Isuru <[email protected]> Committed: Sat Dec 21 21:46:08 2013 +0530 ---------------------------------------------------------------------- .../modules/distribution/src/main/bin/cartridge-agent.sh | 4 +++- products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c2242d73/products/cartridge-agent/modules/distribution/src/main/bin/cartridge-agent.sh ---------------------------------------------------------------------- diff --git a/products/cartridge-agent/modules/distribution/src/main/bin/cartridge-agent.sh b/products/cartridge-agent/modules/distribution/src/main/bin/cartridge-agent.sh index cceba0c..b933c7d 100644 --- a/products/cartridge-agent/modules/distribution/src/main/bin/cartridge-agent.sh +++ b/products/cartridge-agent/modules/distribution/src/main/bin/cartridge-agent.sh @@ -32,7 +32,9 @@ properties="-Dmb.ip=MB-IP -Djndi.properties.dir=${script_path}/../conf -Dlog4j.properties.file.path=${script_path}/../conf/log4j.properties -Dparam.file.path=/opt/apache-stratos-cartridge-agent/payload/launch-params - -Dcep.stats.publisher.enabled=true" + -Dcep.stats.publisher.enabled=true + -Djavax.net.ssl.trustStore=CERT-TRUSTSTORE + -Djavax.net.ssl.trustStorePassword=TRUSTSTORE-PASSWORD" # Uncomment below line to enable remote debugging #debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c2242d73/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh ---------------------------------------------------------------------- diff --git a/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh b/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh index b8c3d3a..b16325f 100755 --- a/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh +++ b/products/cartridge-agent/modules/scripts/ec2/cartridge-agent.sh @@ -86,6 +86,10 @@ cp -f bin/$cartridge_agent_script bin/$cartridge_agent_script.tmp cat bin/$cartridge_agent_script.tmp | sed -e "s@CEP-IP@$CEP_IP@g" > bin/$cartridge_agent_script cp -f bin/$cartridge_agent_script bin/$cartridge_agent_script.tmp cat bin/$cartridge_agent_script.tmp | sed -e "s@CEP-PORT@$CEP_PORT@g" > bin/$cartridge_agent_script +cp -f bin/$cartridge_agent_script bin/$cartridge_agent_script.tmp +cat bin/$cartridge_agent_script.tmp | sed -e "s@CERT-TRUSTSTORE@$CERT_TRUSTSTORE@g" > bin/$cartridge_agent_script +cp -f bin/$cartridge_agent_script bin/$cartridge_agent_script.tmp +cat bin/$cartridge_agent_script.tmp | sed -e "s@\bTRUSTSTORE-PASSWORD\b@$TRUSTSTORE_PASSWORD@g" > bin/$cartridge_agent_script rm -f bin/$cartridge_agent_script.tmp popd
