aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be
diff options
context:
space:
mode:
authorMurali <murali.p@huawei.com>2017-09-15 11:34:39 +0000
committerMurali <murali.p@huawei.com>2017-09-15 11:34:39 +0000
commit1fb8387b7dc59a9ac62ef7c9b592197687818554 (patch)
tree63b02526655ea127e56f5b56a3a7e2ae4e461232 /vnfmarket-be
parentb81571ff1e882f02072cf8fae59e6578596e8f22 (diff)
Fix the sed command bug to replace postgres ip
Input and output were reversed,docker not working as expected Change-Id: I840b06d18ca6e154893803cb14486c4a1227da1e Jira:VNFSDK-78 Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be')
-rwxr-xr-xvnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
index 25a22581..f052db2a 100755
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh
@@ -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