|
|
@ -5,7 +5,6 @@ echo "----------------------------------------"
|
|
|
|
echo "Entgra IoT Server IP configuration tool"
|
|
|
|
echo "Entgra IoT Server IP configuration tool"
|
|
|
|
echo "----------------------------------------"
|
|
|
|
echo "----------------------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##################################### IP configs related to core ####################################
|
|
|
|
##################################### IP configs related to core ####################################
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
@ -29,7 +28,6 @@ while [[ -z $val2 ]]; do #if $val2 is a zero length String
|
|
|
|
read val2;
|
|
|
|
read val2;
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "--------------------------------------"
|
|
|
|
echo "--------------------------------------"
|
|
|
|
echo "All your " + $val1 + " IP's are replaced with " +$val2 ;
|
|
|
|
echo "All your " + $val1 + " IP's are replaced with " +$val2 ;
|
|
|
|
echo "--------------------------------------"
|
|
|
|
echo "--------------------------------------"
|
|
|
@ -41,11 +39,6 @@ sed -i '' -e 's#\(<HostName>\)'$val1'\(</HostName>\)#\1'$val2'\2#g' ../conf/carb
|
|
|
|
sed -i '' -e 's#\(<MgtHostName>\)'$val1'\(</MgtHostName>\)#\1'$val2'\2#g' ../conf/carbon.xml
|
|
|
|
sed -i '' -e 's#\(<MgtHostName>\)'$val1'\(</MgtHostName>\)#\1'$val2'\2#g' ../conf/carbon.xml
|
|
|
|
echo "Completed!!"
|
|
|
|
echo "Completed!!"
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------
|
|
|
|
|
|
|
|
echo "Changing <IoT_HOME>/conf/app-manager.xml"
|
|
|
|
|
|
|
|
sed -i '' -e 's#\(<IdentityProviderUrl>\)https\:\/\/'$val1'\:\${mgt\.transport\.https\.port}\/samlsso\(</IdentityProviderUrl>\)#\1'https://$val2:9443/samlsso'\2#g' ../conf/app-manager.xml
|
|
|
|
|
|
|
|
echo "Completed!!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------
|
|
|
|
#--------------------
|
|
|
|
echo "Changing <IoT_HOME>/conf/identity/sso-idp-config.xml"
|
|
|
|
echo "Changing <IoT_HOME>/conf/identity/sso-idp-config.xml"
|
|
|
|
sed -i '' -e 's/'$val1'/'$val2'/g' ../conf/identity/sso-idp-config.xml
|
|
|
|
sed -i '' -e 's/'$val1'/'$val2'/g' ../conf/identity/sso-idp-config.xml
|
|
|
@ -190,9 +183,6 @@ sed -i '' -e 's#\(<HostName>\)'$val1'\(</HostName>\)#\1'$val2'\2#g' ../wso2/brok
|
|
|
|
sed -i '' -e 's#\(<MgtHostName>\)'$val1'\(</MgtHostName>\)#\1'$val2'\2#g' ../wso2/broker/conf/carbon.xml
|
|
|
|
sed -i '' -e 's#\(<MgtHostName>\)'$val1'\(</MgtHostName>\)#\1'$val2'\2#g' ../wso2/broker/conf/carbon.xml
|
|
|
|
echo "Completed!!"
|
|
|
|
echo "Completed!!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##################################### IP configs related to analytics ####################################
|
|
|
|
##################################### IP configs related to analytics ####################################
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
@ -200,8 +190,6 @@ echo ""
|
|
|
|
echo ">>> Step 3: Change current IP address of the IoT Analytics"
|
|
|
|
echo ">>> Step 3: Change current IP address of the IoT Analytics"
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------
|
|
|
|
#--------------------
|
|
|
|
echo "Changing <IoT_HOME>/bin/iot-server.sh"
|
|
|
|
echo "Changing <IoT_HOME>/bin/iot-server.sh"
|
|
|
|
sed -i -e 's/-Diot.analytics.host.*/-Diot.analytics.host="'$val2'" \\/' ../bin/iot-server.sh
|
|
|
|
sed -i -e 's/-Diot.analytics.host.*/-Diot.analytics.host="'$val2'" \\/' ../bin/iot-server.sh
|
|
|
|