fix: 解决不能还原 telegraf.d 中新增配置文件问题

This commit is contained in:
shizhendong
2024-03-01 17:34:06 +08:00
parent 7d7f350e4d
commit 58a61ff40c

View File

@@ -80,10 +80,8 @@ restoreComponentConfig(){
for i in $(ls $2);do
if [ 1 -eq `compareMD5 $1/$i $2/$i` ];then
if [ -f $1/${i} ];then
echo 'return config file '$1/${i}
cp -f $2/$i $1/$i
fi
echo 'return config file '$1/${i}
cp -f $2/$i $1/$i
fi
done
}