more
This commit is contained in:
parent
2664b358c6
commit
665a47e60b
@ -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')
|
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
|
curl -fsSL "https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz" | tar -xz --strip-components=1 -C /opt/mylar3
|
||||||
cd /opt/mylar3
|
cd /opt/mylar3
|
||||||
$STD uv venv .venv
|
$STD uv venv /opt/mylar3/.venv
|
||||||
$STD .venv/bin/uv pip install --no-cache-dir -r requirements.txt
|
$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
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed ${APPLICATION}"
|
msg_ok "Installed ${APPLICATION}"
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@ chown --recursive netbox /opt/netbox/netbox/reports/
|
|||||||
chown --recursive netbox /opt/netbox/netbox/scripts/
|
chown --recursive netbox /opt/netbox/netbox/scripts/
|
||||||
|
|
||||||
mv /opt/netbox/netbox/netbox/configuration_example.py /opt/netbox/netbox/netbox/configuration.py
|
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)
|
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')
|
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"
|
msg_info "Installing Prometheus Proxmox VE Exporter"
|
||||||
mkdir -p /opt/prometheus-pve-exporter
|
mkdir -p /opt/prometheus-pve-exporter
|
||||||
cd /opt/prometheus-pve-exporter
|
cd /opt/prometheus-pve-exporter
|
||||||
|
|
||||||
$STD uv venv /opt/prometheus-pve-exporter/.venv
|
$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
|
cat <<EOF >/opt/prometheus-pve-exporter/pve.yml
|
||||||
default:
|
default:
|
||||||
user: prometheus@pve
|
user: prometheus@pve
|
||||||
|
@ -24,7 +24,9 @@ msg_info "Setting up Radicale"
|
|||||||
mkdir -p /opt/radicale/{users}
|
mkdir -p /opt/radicale/{users}
|
||||||
cd /opt/radicale
|
cd /opt/radicale
|
||||||
$STD uv venv /opt/radicale/.venv
|
$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)
|
RNDPASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
$STD htpasswd -c -b -5 /opt/radicale/users admin "$RNDPASS"
|
$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) }')
|
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
|
mkdir -p /opt/sabnzbd
|
||||||
cd /opt/sabnzbd
|
cd /opt/sabnzbd
|
||||||
$STD uv venv /opt/sabnzbd/.venv
|
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
curl -fsSL "https://github.com/sabnzbd/sabnzbd/releases/download/${RELEASE}/SABnzbd-${RELEASE}-src.tar.gz" -o "$temp_file"
|
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
|
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
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed SABnzbd"
|
msg_ok "Installed SABnzbd"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user