mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-06-30 02:57:38 +00:00
more
This commit is contained in:
@ -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}"
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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 <<EOF >/opt/prometheus-pve-exporter/pve.yml
|
||||
default:
|
||||
user: prometheus@pve
|
||||
|
@ -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"
|
||||
{
|
||||
|
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user