Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-10-03 20:07:17 +0300
committernachoparker <nacho@ownyourbits.com>2017-10-03 20:07:17 +0300
commit9623e484ca27cc1dd5e887d3c177fe33d8abaf85 (patch)
treebaa5cc6086a83fb91d1c14a84f452307963fc155
parentba9d6fdf2dd974cee7b03ed860dc707002f34565 (diff)
letsencrypt: fix external bug (Closes #230)v0.31.6
-rw-r--r--etc/nextcloudpi-config.d/letsencrypt.sh4
-rwxr-xr-xupdate.sh6
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
diff --git a/update.sh b/update.sh
index 9d4ffd27..dcdb2068 100755
--- a/update.sh
+++ b/update.sh
@@ -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