Skip to content

Commit

Permalink
letsencrypt: fix external bug (Closes #230)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Oct 3, 2017
1 parent ba9d6fd commit 9623e48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9623e48

Please sign in to comment.