#!/bin/bash -e # Script to automate deployment of signed SSL certificate to a customer's # SMRT Link instance. function usage { cat <www.wso2.org#$FQDN#;" carbon.xml sed -i "s#wso2carbon#server#;" carbon.xml sed -i "s#<\!--REPLACEME-->#DefaultAndLocalhost#;" axis2/axis2.xml if [ ! -z "$KEYPW" ]; then sed -i "s#wso2carbon#$KEYPW#; s#wso2carbon#$KEYPW#;" carbon.xml sed -i "s#wso2carbon#$KEYPW#; s#wso2carbon#$KEYPW#;" identity/identity.xml sed -i "s#wso2carbon#$KEYPW#; s#wso2carbon#$KEYPW#;" axis2/axis2.xml sed -i "s#Password=wso2carbon#Password=$KEYPW#;" identity/EndpointConfig.properties sed -i "s#\[wso2carbon\]#\[$KEYPW\]#;" ./security/cipher-text.properties sed -i "s#wso2carbon#$KEYPW#;" broker.xml sed -i "s#wso2carbon#$KEYPW#;" ./identity/application-authentication.xml sed -i "s/keystorePass=\"wso2carbon\"/keystorePass=\"$KEYPW\"/;" ./tomcat/catalina-server.xml fi