From 45e35c43969866f323a30f2e3b1c33eedecdea65 Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 2 Aug 2025 19:27:59 +0800 Subject: [PATCH] Update linux.sh --- plugins/prometheus/versions/3.5.0/linux.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/prometheus/versions/3.5.0/linux.sh b/plugins/prometheus/versions/3.5.0/linux.sh index dd4c9a514..79fc102eb 100644 --- a/plugins/prometheus/versions/3.5.0/linux.sh +++ b/plugins/prometheus/versions/3.5.0/linux.sh @@ -39,9 +39,11 @@ Install_App() wget --no-check-certificate -O ${SourceDir}/${FILE_TGZ} https://github.com/prometheus/prometheus/releases/download/v${VERSION}/${FILE_TGZ} fi + + if [ ! -d $InstallDir/bin/prometheus ];then cd ${SourceDir} && tar -zxvf ${FILE_TGZ} - cd ${SourceDir}/prometheus-v* + cd ${SourceDir}/prometheus-${VERSION}.linux-${ARCH_NAME} cp -rf ./* $InstallDir fi }