From 19911f5b81a7cc5f7affee187f4d26dd565807cb Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 2 Feb 2025 20:18:52 +0100 Subject: [PATCH] Prometheus PVE Exporter: Add `--default-timeout=300` to pip install commands (#1950) --- ct/prometheus-pve-exporter.sh | 2 +- install/prometheus-pve-exporter-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/prometheus-pve-exporter.sh b/ct/prometheus-pve-exporter.sh index 198e4280..008b5606 100644 --- a/ct/prometheus-pve-exporter.sh +++ b/ct/prometheus-pve-exporter.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP}" - pip install prometheus-pve-exporter --upgrade --root-user-action=ignore &>/dev/null + pip install prometheus-pve-exporter --default-timeout=300 --upgrade --root-user-action=ignore &>/dev/null msg_ok "Updated ${APP}" msg_info "Starting ${APP}" diff --git a/install/prometheus-pve-exporter-install.sh b/install/prometheus-pve-exporter-install.sh index a1e3c891..ecbeb000 100644 --- a/install/prometheus-pve-exporter-install.sh +++ b/install/prometheus-pve-exporter-install.sh @@ -28,7 +28,7 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Setup Python3" msg_info "Installing Prometheus Proxmox VE Exporter" -python3 -m pip install --quiet --root-user-action=ignore prometheus-pve-exporter +python3 -m pip install --default-timeout=300 --quiet --root-user-action=ignore prometheus-pve-exporter mkdir -p /opt/prometheus-pve-exporter cat < /opt/prometheus-pve-exporter/pve.yml default: