Fix the sed command bug to replace postgres ip 05/12705/1
authorMurali <murali.p@huawei.com>
Fri, 15 Sep 2017 11:34:39 +0000 (11:34 +0000)
committerMurali <murali.p@huawei.com>
Fri, 15 Sep 2017 11:34:39 +0000 (11:34 +0000)
Input and output were reversed,docker not working as expected

Change-Id: I840b06d18ca6e154893803cb14486c4a1227da1e
Jira:VNFSDK-78
Signed-off-by: Murali <murali.p@huawei.com>
vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh

index 25a2258..f052db2 100755 (executable)
@@ -22,5 +22,5 @@ mysql -uroot -prootpass < init/marketplace_tables_mysql.sql
 sed -i 's|Changeme_123|rootpass|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml
 
 #Set postgres instance IP
-sed -i 's|$POSTGRES_IP|127.0.0.1|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml
+sed -i 's|127.0.0.1|'"$POSTGRES_IP"'|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml