diff --git a/install/bazarr-install.sh b/install/bazarr-install.sh index 9c614ef5f..d518bed25 100755 --- a/install/bazarr-install.sh +++ b/install/bazarr-install.sh @@ -22,6 +22,8 @@ $STD unzip bazarr -d /opt/bazarr chmod 775 /opt/bazarr /var/lib/bazarr/ cd /opt/bazarr $STD uv venv /opt/bazarr/.venv +$STD /opt/bazarr/.venv/bin/python -m ensurepip --upgrade +$STD /opt/bazarr/.venv/bin/python -m pip install --upgrade pip $STD /opt/bazarr/.venv/bin/python -m pip install -r requirements.txt msg_ok "Installed Bazarr" diff --git a/install/deluge-install.sh b/install/deluge-install.sh index 413bdc0de..1e9a86455 100644 --- a/install/deluge-install.sh +++ b/install/deluge-install.sh @@ -23,7 +23,7 @@ msg_info "Installing Deluge" mkdir -p /opt/deluge cd /opt/deluge $STD uv venv /opt/deluge/.venv -$STD uv pip install deluge[all] +$STD uv pip install "deluge[all]" libtorrent msg_ok "Installed Deluge" msg_info "Creating Service" diff --git a/install/grist-install.sh b/install/grist-install.sh index 9c239e84a..ab805d08c 100644 --- a/install/grist-install.sh +++ b/install/grist-install.sh @@ -30,7 +30,9 @@ $STD unzip "v${RELEASE}.zip" mv "grist-core-${RELEASE}" /opt/grist cd /opt/grist $STD uv venv /opt/grist/sandbox_venv3 -$STD /opt/grist/sandbox_venv3/bin/uv pip install -r sandbox/requirements.txt +$STD /opt/grist/sandbox_venv3/bin/python -m ensurepip --upgrade +$STD /opt/grist/sandbox_venv3/bin/python -m pip install --upgrade pip +$STD /opt/grist/sandbox_venv3/bin/python -m pip install -r sandbox/requirements.txt $STD yarn install $STD yarn run build:prod ln -sf /opt/grist/sandbox_venv3/bin/python3 /opt/grist/sandbox_venv3/bin/python diff --git a/install/prometheus-pve-exporter-install.sh b/install/prometheus-pve-exporter-install.sh index 9aa90e3ab..b3cf7cb43 100644 --- a/install/prometheus-pve-exporter-install.sh +++ b/install/prometheus-pve-exporter-install.sh @@ -16,8 +16,10 @@ update_os PYTHON_VERSION="3.12" setup_uv msg_info "Installing Prometheus Proxmox VE Exporter" -$STD uv pip install prometheus-pve-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 cat </opt/prometheus-pve-exporter/pve.yml default: user: prometheus@pve @@ -37,7 +39,7 @@ After=syslog.target network.target User=root Restart=always Type=simple -ExecStart=/usr/local/bin/uv run pve_exporter \ +ExecStart=/opt/prometheus-pve-exporter/.venv/bin/pve_exporter \ --config.file=/opt/prometheus-pve-exporter/pve.yml \ --web.listen-address=0.0.0.0:9221 ExecReload=/bin/kill -HUP \$MAINPID diff --git a/install/sabnzbd-install.sh b/install/sabnzbd-install.sh index 6e54728c0..128b8e369 100644 --- a/install/sabnzbd-install.sh +++ b/install/sabnzbd-install.sh @@ -19,7 +19,7 @@ $STD apt-get install -y \ p7zip-full msg_ok "Installed Dependencies" -setup_uv PYTHON_VERSION="3.12" +PYTHON_VERSION="3.12" setup_uv msg_info "Setup Unrar" cat </etc/apt/sources.list.d/non-free.list @@ -33,11 +33,12 @@ msg_ok "Setup Unrar" 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 -$STD uv venv /opt/sabnzbd/venv +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 --python=/opt/sabnzbd/venv/bin/python +$STD uv pip install -r /opt/sabnzbd/requirements.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed SABnzbd" @@ -49,7 +50,7 @@ After=network.target [Service] WorkingDirectory=/opt/sabnzbd -ExecStart=/opt/sabnzbd/venv/bin/python SABnzbd.py -s 0.0.0.0:7777 +ExecStart=/opt/sabnzbd/.venv/bin/python SABnzbd.py -s 0.0.0.0:7777 Restart=always User=root