summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-04-12 17:06:20 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-04-12 17:06:20 +0800
commitd43897cd3592361fa0d22fbe05250949eb279dd1 (patch)
treefa17d614c40ca066621272e55508019473fd8051 /lcm
parent979ff2244f03ee4c736f6a5f7fe8e5e70a9cd6de (diff)
Fix docker config scripts of vfc
Change-Id: Ifae3d4f04367b93827d56b21b8f1f58d7e839f9e Issue-ID: VFC-874 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm')
-rwxr-xr-xlcm/docker/instance_config.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lcm/docker/instance_config.sh b/lcm/docker/instance_config.sh
index 06b4769b..381f462a 100755
--- a/lcm/docker/instance_config.sh
+++ b/lcm/docker/instance_config.sh
@@ -8,7 +8,9 @@ sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/gvnfm/vnflcm/l
sed -i "s|DB_NAME.*|DB_NAME = 'gvnfm'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
sed -i "s|DB_USER.*|DB_USER = 'gvnfm'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
sed -i "s|DB_PASSWD.*|DB_PASSWD = 'gvnfm'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
-sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
+if [ $SERVICE_IP ]; then
+ sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
+fi
# Configure MYSQL
if [ -z "$MYSQL_ADDR" ]; then