fix: 解决不能还原 telegraf.d 中新增配置文件问题
This commit is contained in:
@@ -80,11 +80,9 @@ 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
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user