From c926ed1fbcf20a27ca80120a16c4a9767bd5ee40 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 3 Sep 2024 10:54:34 -0400 Subject: [PATCH] Update prometheus-install.sh tweak --- install/prometheus-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/prometheus-install.sh b/install/prometheus-install.sh index 5d2e95cd..7f939a42 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -23,8 +23,8 @@ msg_info "Installing Prometheus" RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /etc/prometheus mkdir -p /var/lib/prometheus -$STD wget https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz -$STD tar -xvf prometheus-${RELEASE}.linux-amd64.tar.gz +wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz +tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz cd prometheus-${RELEASE}.linux-amd64 mv prometheus promtool /usr/local/bin/ mv consoles/ console_libraries/ /etc/prometheus/ @@ -51,7 +51,7 @@ ExecStart=/usr/local/bin/prometheus \ [Install] WantedBy=multi-user.target" >$service_path -$STD sudo systemctl enable --now prometheus +systemctl enable -q --now prometheus msg_ok "Created Service" motd_ssh