修复:从官方源安装 Certbot

This commit is contained in:
WuYongJie 2026-07-21 18:45:44 +08:00
parent 29e4b31294
commit 383d32795d

View File

@ -35,7 +35,12 @@ systemctl enable --now nginx
if [ ! -x "$CERTBOT_DIR/bin/certbot" ]; then
python3 -m venv "$CERTBOT_DIR"
"$CERTBOT_DIR/bin/pip" install --disable-pip-version-check --no-cache-dir 'certbot==5.4.0'
"$CERTBOT_DIR/bin/pip" install \
--disable-pip-version-check \
--no-cache-dir \
--timeout 180 \
--index-url https://pypi.org/simple \
'certbot==5.4.0'
fi
"$CERTBOT_DIR/bin/certbot" --version