1 Commits

Author SHA1 Message Date
shizhendong
58a61ff40c fix: 解决不能还原 telegraf.d 中新增配置文件问题 2024-03-01 17:34:06 +08:00

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
}