From: Guo Xiang Tan Date: Mon, 27 Mar 2017 03:31:35 +0000 (+0800) Subject: Auto upgrade acme.sh and log output. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a018a1b6639c53977f13cf1dc0c0803ecccda56;p=discourse_docker.git Auto upgrade acme.sh and log output. --- diff --git a/templates/web.letsencrypt.ssl.template.yml b/templates/web.letsencrypt.ssl.template.yml index 2811469..353df0a 100644 --- a/templates/web.letsencrypt.ssl.template.yml +++ b/templates/web.letsencrypt.ssl.template.yml @@ -13,7 +13,8 @@ hooks: - cd /root && git clone https://github.com/Neilpang/acme.sh.git && cd /root/acme.sh && git reset --hard c4c5ecd03de497fd4c3079cbac9d3c56edaffc89 - touch /var/spool/cron/crontabs/root - install -d -m 0755 -g root -o root $LETSENCRYPT_DIR - - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --install + - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --install --log "${LETSENCRYPT_DIR}/acme.sh.log" + - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --upgrade --auto-upgrade - file: path: "/etc/nginx/letsencrypt.conf"