From 49b2f52289d032c0c0fd6e8f5c921197c828a009 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 3 Mar 2018 23:37:47 +0530 Subject: [PATCH] Fix for change-ip script to function properly --- modules/scripts/change-superadmin-credentials.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/scripts/change-superadmin-credentials.sh b/modules/scripts/change-superadmin-credentials.sh index 6b59a162..a6457cc7 100755 --- a/modules/scripts/change-superadmin-credentials.sh +++ b/modules/scripts/change-superadmin-credentials.sh @@ -89,9 +89,19 @@ sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../wso2/analytics/conf/input-event-adapters.xml echo "Completed!!" +echo "Changing /conf/output-event-adapters.xml" +sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../conf/output-event-adapters.xml +sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../conf/output-event-adapters.xml +echo "Completed!!" + echo "Changing /wso2/analytics/conf/output-event-adapters.xml" -sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../wso2/analytics/conf/input-event-adapters.xml -sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../wso2/analytics/conf/input-event-adapters.xml +sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../wso2/analytics/conf/output-event-adapters.xml +sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../wso2/analytics/conf/output-event-adapters.xml +echo "Completed!!" + +echo "Changing /conf/etc/device-analytics-config.xml" +sed -i -e 's#\(\)'$val1'\(\)#\1'$val3'\2#g' ../conf/etc/device-analytics-config.xml +sed -i -e 's#\(\)'$val2'\(\)#\1'$val4'\2#g' ../conf/etc/device-analytics-config.xml echo "Completed!!" echo "Changing /conf/user-mgt.xml"