From 29ccfc9d2003dda8e75ed0f250336c7cbb7c8c43 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:22:16 +0200 Subject: [PATCH] Update scrutiny.sh --- ct/scrutiny.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ct/scrutiny.sh b/ct/scrutiny.sh index 95b4e790..c9c4734d 100644 --- a/ct/scrutiny.sh +++ b/ct/scrutiny.sh @@ -53,7 +53,6 @@ function default_settings() { echo_default } - function update_script() { if [[ ! -d /opt/scrutiny ]]; then msg_error "No ${APP} Installation Found!" @@ -62,10 +61,11 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/AnalogJ/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 3 \ + UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 15 70 4 \ "1" "Update Scrutiny to $RELEASE" ON \ "2" "Start Scrutiny Webapp" OFF \ "3" "Create/Start Scrutiny Collector" OFF \ + "4" "Change Scrutiny Settings" OFF \ 3>&1 1>&2 2>&3) header_info @@ -114,7 +114,6 @@ function update_script() { fi exit fi - if [ "$UPD" == "2" ]; then msg_info "Checking for Scrutiny Webapp Service" if systemctl list-units --full -all | grep -Fq 'scrutiny.service'; then @@ -180,6 +179,10 @@ EOF msg_ok "Started Scrutiny Collector Service" exit fi +if [ "$UPD" == "4" ]; then + nano /opt/scrutiny/config/scrutiny.yaml + exit +fi } start