diff --git a/tests/script/sh/mv_old_data.sh b/tests/script/sh/mv_old_data.sh index 632ac700b74bb84f7b8b034c4f14e1f7f86c5003..606ee171f1e6b8605fd19d542e0b0dce5dfdda28 100755 --- a/tests/script/sh/mv_old_data.sh +++ b/tests/script/sh/mv_old_data.sh @@ -35,6 +35,6 @@ rm -rf $SIM_DIR/dnode3 tar zxf $SCRIPT_DIR/general/connection/sim.tar.gz -C $SIM_DIR/../ cd $SIM_DIR/../sim -fqdn=`hostname` +fqdn=`hostname -f || hostname` grep 'test4' -l -r ./* | xargs sed -i "s/test4/${fqdn}/g" grep 'dataDir' -l -r ./* | xargs sed -i "s#/root/TDengine#${TAOS_DIR}#g"