From 6476fe1d2c6a6f571cf8006b62664de4b01d47d3 Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 2 Aug 2025 19:22:30 +0800 Subject: [PATCH] Update linux.sh --- plugins/prometheus/versions/3.5.0/linux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/prometheus/versions/3.5.0/linux.sh b/plugins/prometheus/versions/3.5.0/linux.sh index 04fabbefd..4174b7afb 100644 --- a/plugins/prometheus/versions/3.5.0/linux.sh +++ b/plugins/prometheus/versions/3.5.0/linux.sh @@ -30,8 +30,8 @@ FILE_TGZ=prometheus-${VERSION}.linux-${ARCH_NAME}.tar.gz # 检查是否通 Install_App() { - SourceDir=$serverPath/source/grafana - InstallDir=$serverPath/grafana + SourceDir=$serverPath/source/prometheus + InstallDir=$serverPath/prometheus mkdir -p ${SourceDir} mkdir -p ${InstallDir} @@ -40,9 +40,9 @@ 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/grafana ];then + if [ ! -d $InstallDir/bin/prometheus ];then cd ${SourceDir} && tar -zxvf ${FILE_TGZ} - cd ${SourceDir}/grafana-v* + cd ${SourceDir}/prometheus-v* cp -rf ./* $InstallDir fi }