Update linux.sh

This commit is contained in:
dami
2025-08-02 19:27:59 +08:00
parent eb5079a5ef
commit 45e35c4396
+3 -1
View File
@@ -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
}