From 28168a22fe824e489467b70ae25cfc04a9dc1078 Mon Sep 17 00:00:00 2001 From: iman homayouni <iman@homayouni.info> Date: Tue, 20 Aug 2024 20:44:38 +0000 Subject: [PATCH] Update file prometheus-installer.sh --- prometheus-installer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prometheus-installer.sh b/prometheus-installer.sh index 3da765a..8789848 100644 --- a/prometheus-installer.sh +++ b/prometheus-installer.sh @@ -24,6 +24,9 @@ git -c http.sslVerify=false clone https://gitlab.homayouni.info/homayouni/find-o bash /tmp/find-os-version/find-os-version.sh | grep -i jammy &> /dev/null [ "$?" != "0" ] && echo 'Only jammy distribution [Linux Ubuntu 22.04] supported' && exit 1 +# remove old files +rm -rf prometheus-2.53.2.linux-amd64.tar.gz &> /dev/null + # download latest LTS version wget https://github.com/prometheus/prometheus/releases/download/v2.53.2/prometheus-2.53.2.linux-amd64.tar.gz -- GitLab