From 83655ecab7643c07f43a2ea5dcdec091d90fb03f Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Mon, 8 Dec 2025 13:16:06 +0100 Subject: [PATCH] fix --- tools/addon/pihole-exporter.sh | 12 +++++++++++- tools/addon/qbittorrent-exporter.sh | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tools/addon/pihole-exporter.sh b/tools/addon/pihole-exporter.sh index ff6944181..6f0130df4 100644 --- a/tools/addon/pihole-exporter.sh +++ b/tools/addon/pihole-exporter.sh @@ -71,17 +71,27 @@ fi echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}" echo -n "Enter URL of pihole, example: (http://127.0.0.1): " read -rs pihole_HOSTNAME +echo . echo -n "Enter pihole password: " read -er pihole_PASSWORD +echo . echo -n "Do you want to skip TLS-Verification (if using a self-signed Certificate on Pi-Hole) [y/N]: " read -rs pihole_SKIP_TLS -echo "" +echo . if ! [[ "${pihole_SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then pihole_SKIP_TLS="true" fi +echo -n "Install qbittorrent-exporter? (y/n): " +read -r install_prompt +echo . +if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then + echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}" + exit 0 +fi + fetch_and_deploy_gh_release "pihole-exporter" "eko/pihole-exporter" "tarball" "latest" setup_go msg_info "Installing pihole-exporter on ${OS}" diff --git a/tools/addon/qbittorrent-exporter.sh b/tools/addon/qbittorrent-exporter.sh index 970c49a0f..50bdc3f2b 100644 --- a/tools/addon/qbittorrent-exporter.sh +++ b/tools/addon/qbittorrent-exporter.sh @@ -71,9 +71,11 @@ fi echo -e "${YW}⚠️ qbittorrent-exporter is not installed.${CL}" echo -n "Enter URL of qbittorrent, example: (http://127.0.0.1:8080): " read -er QBITTORRENT_BASE_URL +echo . echo -n "Enter qbittorrent username: " read -er QBITTORRENT_USERNAME +echo . echo -n "Enter qbittorrent password: " read -rs QBITTORRENT_PASSWORD @@ -81,6 +83,7 @@ echo "" echo -n "Install qbittorrent-exporter? (y/n): " read -r install_prompt +echo . if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}" exit 0