mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-19 19:45:54 +01:00
Fix NPM API health issues on Debian 13 with certbot-dns-multi
On Debian 13 Trixie, NPM shows 'API isn't healthy' after upgrade. Install certbot-dns-multi with golang dependencies to fix this. Changes: - Install golang, build-essential, git on Debian 13 - Install setuptools-golang==2.9.0 in certbot venv - Set CGO_ENABLED=1 and GO111MODULE=on for pip install - Install certbot-dns-multi with --no-build-isolation flag - Applied to both fresh install and update_script() Credit: @i4mr000t and @CrazyWolf13 Source: https://v64.tech/t/nginx-proxy-manager-dnschallenge-ipv64-debian-13-fail/4177/7 Fixes: #7489 - NPM Web UI broken after Debian 13 upgrade
This commit is contained in:
@@ -177,6 +177,17 @@ EOF
|
||||
if [ -d /opt/certbot ]; then
|
||||
$STD /opt/certbot/bin/pip install --upgrade pip setuptools wheel
|
||||
$STD /opt/certbot/bin/pip install --upgrade certbot certbot-dns-cloudflare
|
||||
|
||||
# Fix for Debian 13 Trixie - certbot-dns-multi needed to prevent "API isn't healthy" error
|
||||
if [[ $(grep -E '^VERSION_ID=' /etc/os-release) == *"13"* ]]; then
|
||||
msg_info "Applying Debian 13 Certbot Fix"
|
||||
$STD apt-get install -y golang build-essential git
|
||||
$STD /opt/certbot/bin/pip install --no-cache-dir setuptools-golang==2.9.0
|
||||
export CGO_ENABLED=1
|
||||
export GO111MODULE=on
|
||||
$STD /opt/certbot/bin/pip install --no-build-isolation --no-cache-dir certbot-dns-multi
|
||||
msg_ok "Applied Debian 13 Certbot Fix"
|
||||
fi
|
||||
fi
|
||||
msg_ok "Updated Certbot"
|
||||
|
||||
|
||||
@@ -36,6 +36,18 @@ msg_info "Setting up Certbot"
|
||||
$STD python3 -m venv /opt/certbot
|
||||
$STD /opt/certbot/bin/pip install --upgrade pip setuptools wheel
|
||||
$STD /opt/certbot/bin/pip install certbot certbot-dns-cloudflare
|
||||
|
||||
# Fix for Debian 13 Trixie - certbot-dns-multi needed to prevent "API isn't healthy" error
|
||||
if [[ $(grep -E '^VERSION_ID=' /etc/os-release) == *"13"* ]]; then
|
||||
msg_info "Applying Debian 13 Certbot Fix"
|
||||
$STD apt-get install -y golang build-essential git
|
||||
$STD /opt/certbot/bin/pip install --no-cache-dir setuptools-golang==2.9.0
|
||||
export CGO_ENABLED=1
|
||||
export GO111MODULE=on
|
||||
$STD /opt/certbot/bin/pip install --no-build-isolation --no-cache-dir certbot-dns-multi
|
||||
msg_ok "Applied Debian 13 Certbot Fix"
|
||||
fi
|
||||
|
||||
ln -sf /opt/certbot/bin/certbot /usr/local/bin/certbot
|
||||
msg_ok "Set up Certbot"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user