Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
50c1b8f492
@ -12,7 +12,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
|||||||
VERBOSE=${var_verbose:-no}
|
VERBOSE=${var_verbose:-no}
|
||||||
APP="pihole-exporter"
|
APP="pihole-exporter"
|
||||||
APP_TYPE="tools"
|
APP_TYPE="tools"
|
||||||
INSTALL_PATH="/opt/pihole-exporter/"
|
INSTALL_PATH="/opt/pihole-exporter/pihole-exporter"
|
||||||
CONFIG_PATH="/opt/pihole.env"
|
CONFIG_PATH="/opt/pihole.env"
|
||||||
header_info
|
header_info
|
||||||
ensure_usr_local_bin_persist
|
ensure_usr_local_bin_persist
|
||||||
@ -58,7 +58,7 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
setup_go
|
setup_go
|
||||||
msg_info "Updating pihole-exporter"
|
msg_info "Updating pihole-exporter"
|
||||||
cd /opt/pihole-exporter/
|
cd /opt/pihole-exporter/
|
||||||
/usr/local/bin/go build -o ./pihole-exporter
|
$STD /usr/local/bin/go build -o ./pihole-exporter
|
||||||
msg_ok "Updated Successfully!"
|
msg_ok "Updated Successfully!"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@ -71,7 +71,6 @@ fi
|
|||||||
echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}"
|
echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}"
|
||||||
echo -n "Enter the hostname of pihole, example: (127.0.0.1): "
|
echo -n "Enter the hostname of pihole, example: (127.0.0.1): "
|
||||||
read -er pihole_HOSTNAME
|
read -er pihole_HOSTNAME
|
||||||
echo
|
|
||||||
|
|
||||||
echo -n "Enter pihole password: "
|
echo -n "Enter pihole password: "
|
||||||
read -rs pihole_PASSWORD
|
read -rs pihole_PASSWORD
|
||||||
@ -79,14 +78,12 @@ 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 pihole_SKIP_TLS
|
read -er pihole_SKIP_TLS
|
||||||
echo
|
|
||||||
if ! [[ "${pihole_SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then
|
if ! [[ "${pihole_SKIP_TLS,,}" =~ ^(y|yes)$ ]]; then
|
||||||
pihole_SKIP_TLS="true"
|
pihole_SKIP_TLS="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Install qbittorrent-exporter? (y/n): "
|
echo -n "Install qbittorrent-exporter? (y/n): "
|
||||||
read -r install_prompt
|
read -r install_prompt
|
||||||
echo
|
|
||||||
if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
||||||
exit 0
|
exit 0
|
||||||
@ -96,7 +93,7 @@ fetch_and_deploy_gh_release "pihole-exporter" "eko/pihole-exporter" "tarball" "l
|
|||||||
setup_go
|
setup_go
|
||||||
msg_info "Installing pihole-exporter on ${OS}"
|
msg_info "Installing pihole-exporter on ${OS}"
|
||||||
cd /opt/pihole-exporter/
|
cd /opt/pihole-exporter/
|
||||||
/usr/local/bin/go build -o ./pihole-exporter
|
$STD /usr/local/bin/go build -o ./pihole-exporter
|
||||||
msg_ok "Installed pihole-exporter"
|
msg_ok "Installed pihole-exporter"
|
||||||
|
|
||||||
msg_info "Creating configuration"
|
msg_info "Creating configuration"
|
||||||
|
|||||||
@ -58,7 +58,7 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
setup_go
|
setup_go
|
||||||
msg_info "Updating qbittorrent-exporter"
|
msg_info "Updating qbittorrent-exporter"
|
||||||
cd /opt/qbittorrent-exporter/src
|
cd /opt/qbittorrent-exporter/src
|
||||||
/usr/local/bin/go build -o ./qbittorrent-exporter
|
$STD /usr/local/bin/go build -o ./qbittorrent-exporter
|
||||||
msg_ok "Updated Successfully!"
|
msg_ok "Updated Successfully!"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@ -71,11 +71,9 @@ fi
|
|||||||
echo -e "${YW}⚠️ qbittorrent-exporter is not installed.${CL}"
|
echo -e "${YW}⚠️ qbittorrent-exporter is not installed.${CL}"
|
||||||
echo -n "Enter URL of qbittorrent, example: (http://127.0.0.1:8080): "
|
echo -n "Enter URL of qbittorrent, example: (http://127.0.0.1:8080): "
|
||||||
read -er QBITTORRENT_BASE_URL
|
read -er QBITTORRENT_BASE_URL
|
||||||
echo
|
|
||||||
|
|
||||||
echo -n "Enter qbittorrent username: "
|
echo -n "Enter qbittorrent username: "
|
||||||
read -er QBITTORRENT_USERNAME
|
read -er QBITTORRENT_USERNAME
|
||||||
echo
|
|
||||||
|
|
||||||
echo -n "Enter qbittorrent password: "
|
echo -n "Enter qbittorrent password: "
|
||||||
read -rs QBITTORRENT_PASSWORD
|
read -rs QBITTORRENT_PASSWORD
|
||||||
@ -83,7 +81,6 @@ echo
|
|||||||
|
|
||||||
echo -n "Install qbittorrent-exporter? (y/n): "
|
echo -n "Install qbittorrent-exporter? (y/n): "
|
||||||
read -r install_prompt
|
read -r install_prompt
|
||||||
echo
|
|
||||||
if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
||||||
exit 0
|
exit 0
|
||||||
@ -93,7 +90,7 @@ fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporte
|
|||||||
setup_go
|
setup_go
|
||||||
msg_info "Installing qbittorrent-exporter on ${OS}"
|
msg_info "Installing qbittorrent-exporter on ${OS}"
|
||||||
cd /opt/qbittorrent-exporter/src
|
cd /opt/qbittorrent-exporter/src
|
||||||
/usr/local/bin/go build -o ./qbittorrent-exporter
|
$STD /usr/local/bin/go build -o ./qbittorrent-exporter
|
||||||
msg_ok "Installed qbittorrent-exporter"
|
msg_ok "Installed qbittorrent-exporter"
|
||||||
|
|
||||||
msg_info "Creating configuration"
|
msg_info "Creating configuration"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user