mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-26 08:56:23 +01:00
pihole-exporter fix: unbound var (#10307)
This commit is contained in:
@ -12,8 +12,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
||||
# Enable error handling
|
||||
set -Eeuo pipefail
|
||||
trap 'error_handler' ERR
|
||||
|
||||
load_functions
|
||||
|
||||
# ==============================================================================
|
||||
# CONFIGURATION
|
||||
# ==============================================================================
|
||||
@ -22,9 +22,6 @@ APP="pihole-exporter"
|
||||
APP_TYPE="tools"
|
||||
INSTALL_PATH="/opt/pihole-exporter"
|
||||
CONFIG_PATH="/opt/pihole-exporter.env"
|
||||
header_info
|
||||
ensure_usr_local_bin_persist
|
||||
import_local_ip
|
||||
|
||||
# ==============================================================================
|
||||
# OS DETECTION
|
||||
@ -186,7 +183,7 @@ UPDATEEOF
|
||||
|
||||
echo ""
|
||||
msg_ok "Pihole-Exporter installed successfully"
|
||||
msg_ok "Metrics: ${BL}http://${CURRENT_IP}:9617/metrics${CL}"
|
||||
msg_ok "Metrics: ${BL}http://${LOCAL_IP}:9617/metrics${CL}"
|
||||
msg_ok "Config: ${BL}${CONFIG_PATH}${CL}"
|
||||
}
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
||||
# Enable error handling
|
||||
set -Eeuo pipefail
|
||||
trap 'error_handler' ERR
|
||||
|
||||
load_functions
|
||||
|
||||
# ==============================================================================
|
||||
# CONFIGURATION
|
||||
# ==============================================================================
|
||||
@ -22,8 +22,6 @@ APP="qbittorrent-exporter"
|
||||
APP_TYPE="tools"
|
||||
INSTALL_PATH="/opt/qbittorrent-exporter"
|
||||
CONFIG_PATH="/opt/qbittorrent-exporter.env"
|
||||
header_info
|
||||
ensure_usr_local_bin_persist
|
||||
|
||||
# ==============================================================================
|
||||
# OS DETECTION
|
||||
|
||||
Reference in New Issue
Block a user