提交 b42a3119 编写于 作者: S slguan

fix script error while get hostname in cloud machine

上级 4315758e
......@@ -70,7 +70,7 @@ if [ -f "$TAOS_FLAG" ] ; then
sudo rm -rf $LOG_DIR
fi
HOSTNAME=`hostname`
HOSTNAME=`hostname -f`
if [ $NODE -eq 1 ]; then
NODE=7100
......
......@@ -80,7 +80,7 @@ TAOS_CFG=$PRG_DIR/cfg/taos.cfg
touch -f $TAOS_CFG
TAOS_FLAG=$PRG_DIR/flag
HOSTNAME=`hostname`
HOSTNAME=`hostname -f`
echo " " >> $TAOS_CFG
echo "first ${HOSTNAME}:7100" >> $TAOS_CFG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册