Change-Id: Ida7423127ee2e6e00e57abf5268a1a8e37b183db
Issue-ID: VFC-544
Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
#
# Config MSB address
MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
-sed -i "s|127\.0\.0\.1|${MSB_IP}|" etc/conf/restclient.json
+MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
+
+if [ $MSB_PORT ]; then
+ sed -i "s|127\.0\.0\.1|${MSB_IP}|" etc/conf/restclient.json
+fi
+
+if [ $MSB_PORT ]; then
+ sed -i "s|80|${$MSB_PORT}|" etc/conf/restclient.json
+fi
+
cat etc/conf/restclient.json
# Set self IP
function start_mysql {
echo "start mysql ... "
- service mysql start
+ /usr/bin/systemctl start mysql.service || /usr/sbin/service mysql start
sleep 1
}