From 07bddaeb724e75bd2b47f169f21b37be8f6e48c6 Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 25 Jan 2018 15:56:56 +0530 Subject: [PATCH] Adding changes to change-sueradmin script to do changes to cdm-config.xml --- modules/scripts/change-superadmin-credentials.sh | 5 +++++ pom.xml | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/scripts/change-superadmin-credentials.sh b/modules/scripts/change-superadmin-credentials.sh index 2f9f0494..6b59a162 100755 --- a/modules/scripts/change-superadmin-credentials.sh +++ b/modules/scripts/change-superadmin-credentials.sh @@ -42,6 +42,11 @@ while [[ -z $val3 || -z $val4 ]]; do #if $val2 is a zero length String read val4; done +echo "Changing /conf/cdm-config.xml" +sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../conf/cdm-config.xml +sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../conf/cdm-config.xml +echo "Completed!!" + echo "Changing /conf/app-manager.xml" sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../conf/app-manager.xml sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../conf/app-manager.xml diff --git a/pom.xml b/pom.xml index 034c139d..24f2b49c 100644 --- a/pom.xml +++ b/pom.xml @@ -17,8 +17,7 @@ ~ under the License. --> - + 4.0.0 org.wso2.iot @@ -1499,8 +1498,7 @@ 5.3.11 5.1.2 5.1.4 - 5.1.1 - + 5.1.1 5.1.1 5.1.4 1.0.0