From 58a61ff40ca2af2421b3a97feecf1ea8ad434751 Mon Sep 17 00:00:00 2001 From: shizhendong Date: Fri, 1 Mar 2024 17:34:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=BF=98=E5=8E=9F=20telegraf.d=20=E4=B8=AD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/afterinstall.sh | 6 ++---- 1 file 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 }