diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-04-29 02:33:05 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-04-30 04:57:40 +0300 |
commit | b3c7d1375e57b6476c68976b4b5dab2d4422582d (patch) | |
tree | fd150b966600072a79580c804a10661ed9bbcf1f /bin/ncp | |
parent | 02efd614fd562f8e540a68a0c5a4dc1fe1eaf78f (diff) |
letsencrypt: switch to apt versionv1.11.4
Diffstat (limited to 'bin/ncp')
-rw-r--r-- | bin/ncp/NETWORKING/letsencrypt.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/ncp/NETWORKING/letsencrypt.sh b/bin/ncp/NETWORKING/letsencrypt.sh index 686df42c..180692a5 100644 --- a/bin/ncp/NETWORKING/letsencrypt.sh +++ b/bin/ncp/NETWORKING/letsencrypt.sh @@ -11,7 +11,7 @@ ncdir=/var/www/nextcloud vhostcfg=/etc/apache2/sites-available/nextcloud.conf vhostcfg2=/etc/apache2/sites-available/ncp.conf -letsencrypt=/etc/letsencrypt/letsencrypt-auto +letsencrypt=/usr/bin/letsencrypt is_active() { @@ -22,13 +22,8 @@ install() { cd /etc || return 1 apt-get update - apt-get install --no-install-recommends -y python3-minimal - wget -O- --content-disposition https://github.com/letsencrypt/letsencrypt/archive/master/latest.tar.gz \ - | tar -xz \ - || exit 1 - mv certbot-master letsencrypt - export VIRTUALENV_NO_DOWNLOAD=1 # temporal workaround for https://github.com/certbot/certbot/issues/6682 - $letsencrypt --help # do not actually run certbot, only install packages + apt-get install --no-install-recommends -y letsencrypt + rm -f /etc/cron.d/certbot mkdir -p /etc/letsencrypt/live [[ "$DOCKERBUILD" == 1 ]] && { @@ -46,7 +41,7 @@ EOF return 0 } -# tested with certbot 0.30.0 +# tested with certbot 0.28.0 configure() { local DOMAIN_LOWERCASE="${DOMAIN,,}" |