From d4fa5ee35747c944e33e44e3ab6106cd9b4349b7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:43:42 +0200 Subject: [PATCH] Update scrutiny.sh --- ct/scrutiny.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/scrutiny.sh b/ct/scrutiny.sh index 36a586fc..95b4e790 100644 --- a/ct/scrutiny.sh +++ b/ct/scrutiny.sh @@ -65,7 +65,7 @@ function update_script() { UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 3 \ "1" "Update Scrutiny to $RELEASE" ON \ "2" "Start Scrutiny Webapp" OFF \ - "3" "Start Scrutiny Collector" OFF \ + "3" "Create/Start Scrutiny Collector" OFF \ 3>&1 1>&2 2>&3) header_info @@ -155,6 +155,8 @@ if [ "$UPD" == "3" ]; then msg_ok "Stopped Scrutiny Collector Service" else msg_info "Scrutiny Collector Service not found, creating..." + wget -q -O /opt/scrutiny/bin/scrutiny-collector-metrics-linux-amd64 "https://github.com/AnalogJ/scrutiny/releases/download/${RELEASE}/scrutiny-collector-metrics-linux-amd64" + chmod +x /opt/scrutiny/bin/scrutiny-collector-metrics-linux-amd64 cat </etc/systemd/system/scrutiny_collector.service [Unit] Description=Scrutiny Collector