letsencrypt: fix workaround for old images

This commit is contained in:
nachoparker 2017-10-07 09:39:45 +02:00
parent dcbafb292f
commit a5ce511469

View File

@ -248,8 +248,12 @@ EOF
}
# temporary workaround for bug https://github.com/certbot/certbot/issues/5138#issuecomment-333391771
cat > /etc/pip.conf <<EOF
[global]
extra-index-url=https://www.piwheels.hostedpi.com/simple
extra-index-url=https://www.piwheels.hostedpi.com/simple/zope.components
EOF
test -e /etc/pip.conf && grep -q zope /etc/pip.conf || {
cat >> /etc/pip.conf <<<"extra-index-url=https://www.piwheels.hostedpi.com/simple/zope.components"
/etc/letsencrypt/letsencrypt-auto --help
}