bugfix:TSG-6883修改因获取sn失败导致tsg-os-provision的bug

This commit is contained in:
fumingwei
2021-07-05 15:09:21 +08:00
committed by 付明卫
parent d8abf8dabe
commit 7d07835298

View File

@@ -23,7 +23,8 @@ CHIDL=`echo $CHID | awk '{print length($0)}'`
if [ $CHIDL != 20 ];then
echo "CHID length is not 20!"
exit 1
echo "{\"sn\": \"CBT00000000000000000\"}" > /opt/tsg/etc/tsg_sn.json
exit 0
fi
echo "{\"sn\": \"$CHID\"}" > /opt/tsg/etc/tsg_sn.json