Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
df2ee20e60
@ -9,6 +9,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
|||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func)
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
|
|
||||||
|
|
||||||
VERBOSE=${var_verbose:-no}
|
VERBOSE=${var_verbose:-no}
|
||||||
APP="pihole-exporter"
|
APP="pihole-exporter"
|
||||||
APP_TYPE="tools"
|
APP_TYPE="tools"
|
||||||
@ -45,8 +46,7 @@ if [[ -d "$INSTALL_PATH" ]]; then
|
|||||||
rc-update del pihole-exporter &>/dev/null
|
rc-update del pihole-exporter &>/dev/null
|
||||||
rm -f "$SERVICE_PATH"
|
rm -f "$SERVICE_PATH"
|
||||||
fi
|
fi
|
||||||
rm -rf "$INSTALL_PATH"
|
rm -rf "$INSTALL_PATH" "$CONFIG_PATH" ~/.pihole-exporter
|
||||||
rm -f "$CONFIG_PATH" ~/.pihole-exporter
|
|
||||||
msg_ok "${APP} has been uninstalled."
|
msg_ok "${APP} has been uninstalled."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -79,7 +79,7 @@ echo
|
|||||||
|
|
||||||
echo -n "Do you want to skip TLS-Verification (if using a self-signed Certificate on Pi-Hole) [y/N]: "
|
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 -er SKIP_TLS
|
||||||
if ! [[ "${SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then
|
if [[ "${SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then
|
||||||
pihole_SKIP_TLS="true"
|
pihole_SKIP_TLS="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ msg_info "Creating configuration"
|
|||||||
cat <<EOF >"$CONFIG_PATH"
|
cat <<EOF >"$CONFIG_PATH"
|
||||||
# https://github.com/eko/pihole-exporter/?tab=readme-ov-file#available-cli-options
|
# https://github.com/eko/pihole-exporter/?tab=readme-ov-file#available-cli-options
|
||||||
PIHOLE_PASSWORD="${pihole_PASSWORD}"
|
PIHOLE_PASSWORD="${pihole_PASSWORD}"
|
||||||
PIHOLE_hostname="${pihole_HOSTNAME}"
|
PIHOLE_HOSTNAME="${pihole_HOSTNAME}"
|
||||||
SKIP_TLS_VERIFICATION="${pihole_SKIP_TLS}"
|
SKIP_TLS_VERIFICATION="${pihole_SKIP_TLS}"
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Created configuration"
|
msg_ok "Created configuration"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user