fixes
This commit is contained in:
parent
11d6a33da1
commit
1a5fdc0afa
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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 <<EOF >/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
|
||||
|
@ -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 <<EOF >/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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user