From 5b6c43914b5753596abc9c3f37fd47e406290e3c Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Mon, 8 Dec 2025 15:26:42 +0100 Subject: [PATCH] fix detection --- tools/addon/pihole-exporter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/addon/pihole-exporter.sh b/tools/addon/pihole-exporter.sh index 2a595355e..089ee84f0 100644 --- a/tools/addon/pihole-exporter.sh +++ b/tools/addon/pihole-exporter.sh @@ -12,7 +12,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV VERBOSE=${var_verbose:-no} APP="pihole-exporter" APP_TYPE="tools" -INSTALL_PATH="/opt/pihole-exporter/pihole-exporter" +INSTALL_PATH="/opt/pihole-exporter" CONFIG_PATH="/opt/pihole.env" header_info ensure_usr_local_bin_persist @@ -31,7 +31,7 @@ else fi # Existing installation -if [[ -f "$INSTALL_PATH" ]]; then +if [[ -d "$INSTALL_PATH" ]]; then echo -e "${YW}⚠️ pihole-exporter is already installed.${CL}" echo -n "Uninstall ${APP}? (y/N): " read -r uninstall_prompt