fix script error while get hostname in cloud machine

This commit is contained in:
slguan 2020-04-30 10:57:12 +08:00
parent 4315758ef3
commit b42a311910
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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