diff --git a/tools/addon/pihole-exporter.sh b/tools/addon/pihole-exporter.sh index 29c98a0ad..1abd493f9 100644 --- a/tools/addon/pihole-exporter.sh +++ b/tools/addon/pihole-exporter.sh @@ -70,24 +70,14 @@ if [[ -d "$INSTALL_PATH" ]]; then fi echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}" -echo -n "Enter the hostname of Pihole, example: (127.0.0.1): " -read -er pihole_HOSTNAME - -echo -n "Enter the port of Pihole, default 443: " -read -er pihole_PORT - -echo -n "Enter Pihole password: " -read -rs pihole_PASSWORD -echo - -echo -n "Do you want to skip TLS-Verification (if using a self-signed Certificate on Pi-Hole) [y/N]: " -read -er SKIP_TLS +read -erp "Enter the hostname of Pihole, example: (127.0.0.1): " pihole_HOSTNAME +read -erp "Enter the port of Pihole, default 443: " pihole_PORT +read -rsp "Enter Pihole password: " pihole_PASSWORD +read -erp "Do you want to skip TLS-Verification (if using a self-signed Certificate on Pi-Hole) [y/N]: " SKIP_TLS +read -erp "Install qbittorrent-exporter? (y/n): " install_prompt if [[ "${SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then pihole_SKIP_TLS="true" fi - -echo -n "Install qbittorrent-exporter? (y/n): " -read -r install_prompt if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}" exit 0