summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshizhendong <[email protected]>2024-03-01 17:34:06 +0800
committershizhendong <[email protected]>2024-03-01 17:34:06 +0800
commit58a61ff40ca2af2421b3a97feecf1ea8ad434751 (patch)
tree4dd4b14134b6e0ccecff575991e9dd4f559bebdc
parent7d7f350e4d58f998b284eb202df26e65c9c2a829 (diff)
fix: 解决不能还原 telegraf.d 中新增配置文件问题rel-24.01.03dev-3.10
-rw-r--r--tools/afterinstall.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/afterinstall.sh b/tools/afterinstall.sh
index 16ac790..53e9c27 100644
--- a/tools/afterinstall.sh
+++ b/tools/afterinstall.sh
@@ -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
}