diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-10-03 20:07:17 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-10-03 20:07:17 +0300 |
commit | 9623e484ca27cc1dd5e887d3c177fe33d8abaf85 (patch) | |
tree | baa5cc6086a83fb91d1c14a84f452307963fc155 | |
parent | ba9d6fdf2dd974cee7b03ed860dc707002f34565 (diff) |
letsencrypt: fix external bug (Closes #230)v0.31.6
-rw-r--r-- | etc/nextcloudpi-config.d/letsencrypt.sh | 4 | ||||
-rwxr-xr-x | update.sh | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/letsencrypt.sh b/etc/nextcloudpi-config.d/letsencrypt.sh index 09302230..752a45b8 100644 --- a/etc/nextcloudpi-config.d/letsencrypt.sh +++ b/etc/nextcloudpi-config.d/letsencrypt.sh @@ -39,6 +39,10 @@ install() git clone https://github.com/letsencrypt/letsencrypt /etc/letsencrypt/letsencrypt-auto --help # do not actually run certbot, only install packages + # temporary workaround for bug https://github.com/certbot/certbot/issues/5138#issuecomment-333391771 + cat >> /etc/pip.conf <<<"extra-index-url=https://www.piwheels.hostedpi.com/simple/zope.components" + /etc/letsencrypt/letsencrypt-auto --help # do not actually run certbot, only install packages + [[ "$DOCKERBUILD" == 1 ]] && { cat > /etc/cont-init.d/100-letsencrypt-run.sh <<EOF #!/bin/bash @@ -246,6 +246,12 @@ EOF a2enmod authnz_external authn_core auth_basic bash -c "sleep 2 && systemctl restart apache2" &>/dev/null & } + + # temporary workaround for bug https://github.com/certbot/certbot/issues/5138#issuecomment-333391771 + 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 + } } # License |