From 9623e484ca27cc1dd5e887d3c177fe33d8abaf85 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Tue, 3 Oct 2017 19:07:17 +0200 Subject: letsencrypt: fix external bug (Closes #230) --- etc/nextcloudpi-config.d/letsencrypt.sh | 4 ++++ update.sh | 6 ++++++ 2 files changed, 10 insertions(+) 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 </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 -- cgit v1.2.3