From 665a47e60bc66eaf66231b2bcb5d5c6cefa9364c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 5 Jun 2025 13:01:52 +0200 Subject: [PATCH] more --- install/mylar3-install.sh | 6 ++++-- install/netbox-install.sh | 3 +++ install/prometheus-pve-exporter-install.sh | 5 ++++- install/radicale-install.sh | 4 +++- install/sabnzbd-install.sh | 6 ++++-- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/install/mylar3-install.sh b/install/mylar3-install.sh index 6bfa4aa5d..c5327afd0 100644 --- a/install/mylar3-install.sh +++ b/install/mylar3-install.sh @@ -29,8 +29,10 @@ mkdir -p /opt/mylar3-data RELEASE=$(curl -fsSL https://api.github.com/repos/mylar3/mylar3/releases/latest | jq -r '.tag_name') curl -fsSL "https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz" | tar -xz --strip-components=1 -C /opt/mylar3 cd /opt/mylar3 -$STD uv venv .venv -$STD .venv/bin/uv pip install --no-cache-dir -r requirements.txt +$STD uv venv /opt/mylar3/.venv +$STD /opt/mylar3/.venv/bin/python -m ensurepip --upgrade +$STD /opt/mylar3/.venv/bin/python -m pip install --upgrade pip +$STD /opt/mylar3/.venv/bin/python -m pip install -r requirements.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed ${APPLICATION}" diff --git a/install/netbox-install.sh b/install/netbox-install.sh index 8522682e6..5d8e8b6a2 100644 --- a/install/netbox-install.sh +++ b/install/netbox-install.sh @@ -56,6 +56,9 @@ chown --recursive netbox /opt/netbox/netbox/reports/ chown --recursive netbox /opt/netbox/netbox/scripts/ mv /opt/netbox/netbox/netbox/configuration_example.py /opt/netbox/netbox/netbox/configuration.py +$STD uv venv /opt/netbox/.venv +$STD /opt/netbox/.venv/bin/python -m ensurepip --upgrade +$STD /opt/netbox/.venv/bin/python -m pip install --upgrade pip SECRET_KEY=$(/opt/netbox/.venv/bin/python /opt/netbox/netbox/generate_secret_key.py) ESCAPED_SECRET_KEY=$(printf '%s\n' "$SECRET_KEY" | sed 's/[&/\]/\\&/g') diff --git a/install/prometheus-pve-exporter-install.sh b/install/prometheus-pve-exporter-install.sh index b3cf7cb43..513611e5b 100644 --- a/install/prometheus-pve-exporter-install.sh +++ b/install/prometheus-pve-exporter-install.sh @@ -18,8 +18,11 @@ PYTHON_VERSION="3.12" setup_uv msg_info "Installing Prometheus Proxmox VE Exporter" mkdir -p /opt/prometheus-pve-exporter cd /opt/prometheus-pve-exporter + $STD uv venv /opt/prometheus-pve-exporter/.venv -$STD uv pip install prometheus-pve-exporter +$STD /opt/prometheus-pve-exporter/.venv/bin/python -m ensurepip --upgrade +$STD /opt/prometheus-pve-exporter/.venv/bin/python -m pip install --upgrade pip +$STD /opt/prometheus-pve-exporter/.venv/bin/python -m pip install prometheus-pve-exporter cat </opt/prometheus-pve-exporter/pve.yml default: user: prometheus@pve diff --git a/install/radicale-install.sh b/install/radicale-install.sh index db4858da9..dc143de44 100644 --- a/install/radicale-install.sh +++ b/install/radicale-install.sh @@ -24,7 +24,9 @@ msg_info "Setting up Radicale" mkdir -p /opt/radicale/{users} cd /opt/radicale $STD uv venv /opt/radicale/.venv -$STD uv pip install --upgrade https://github.com/Kozea/Radicale/archive/master.tar.gz +$STD /opt/radicale/.venv/bin/python -m ensurepip --upgrade +$STD /opt/radicale/.venv/bin/python -m pip install --upgrade pip +$STD /opt/radicale/.venv/bin/python -m pip install --upgrade https://github.com/Kozea/Radicale/archive/master.tar.gz RNDPASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) $STD htpasswd -c -b -5 /opt/radicale/users admin "$RNDPASS" { diff --git a/install/sabnzbd-install.sh b/install/sabnzbd-install.sh index 128b8e369..9271200ef 100644 --- a/install/sabnzbd-install.sh +++ b/install/sabnzbd-install.sh @@ -34,11 +34,13 @@ msg_info "Installing SABnzbd" RELEASE=$(curl -fsSL https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/sabnzbd cd /opt/sabnzbd -$STD uv venv /opt/sabnzbd/.venv temp_file=$(mktemp) curl -fsSL "https://github.com/sabnzbd/sabnzbd/releases/download/${RELEASE}/SABnzbd-${RELEASE}-src.tar.gz" -o "$temp_file" tar -xzf "$temp_file" -C /opt/sabnzbd --strip-components=1 -$STD uv pip install -r /opt/sabnzbd/requirements.txt +$STD uv venv /opt/sabnzbd/.venv +$STD /opt/sabnzbd/.venv/bin/python -m ensurepip --upgrade +$STD /opt/sabnzbd/.venv/bin/python -m pip install --upgrade pip +$STD /opt/sabnzbd/.venv/bin/python -m pip install -r requirements.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed SABnzbd"