diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index de41e876e..51ba0706c 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -180,13 +180,15 @@ EOF # 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" + if ! /opt/certbot/bin/pip list 2>/dev/null | grep -q certbot-dns-multi; 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 fi msg_ok "Updated Certbot" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 93227a101..c1c69b8e9 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -39,13 +39,15 @@ $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" + if ! /opt/certbot/bin/pip list 2>/dev/null | grep -q certbot-dns-multi; 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 ln -sf /opt/certbot/bin/certbot /usr/local/bin/certbot