fix
This commit is contained in:
parent
77a1665103
commit
83655ecab7
@ -71,17 +71,27 @@ fi
|
|||||||
echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}"
|
echo -e "${YW}⚠️ pihole-exporter is not installed.${CL}"
|
||||||
echo -n "Enter URL of pihole, example: (http://127.0.0.1): "
|
echo -n "Enter URL of pihole, example: (http://127.0.0.1): "
|
||||||
read -rs pihole_HOSTNAME
|
read -rs pihole_HOSTNAME
|
||||||
|
echo .
|
||||||
|
|
||||||
echo -n "Enter pihole password: "
|
echo -n "Enter pihole password: "
|
||||||
read -er pihole_PASSWORD
|
read -er pihole_PASSWORD
|
||||||
|
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 -rs pihole_SKIP_TLS
|
read -rs pihole_SKIP_TLS
|
||||||
echo ""
|
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): "
|
||||||
|
read -r install_prompt
|
||||||
|
echo .
|
||||||
|
if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
|
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "pihole-exporter" "eko/pihole-exporter" "tarball" "latest"
|
fetch_and_deploy_gh_release "pihole-exporter" "eko/pihole-exporter" "tarball" "latest"
|
||||||
setup_go
|
setup_go
|
||||||
msg_info "Installing pihole-exporter on ${OS}"
|
msg_info "Installing pihole-exporter on ${OS}"
|
||||||
|
|||||||
@ -71,9 +71,11 @@ 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
|
||||||
@ -81,6 +83,7 @@ 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user