evoacme: fix symlink generation

This commit is contained in:
Victor LABORIE 2017-09-05 13:40:01 +02:00
parent 0726d29796
commit ff392d8e26
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ main() {
chown -R acme: "$CRT_DIR/${vhost}"
sudo -u acme certbot certonly --quiet --webroot --csr "$CSR_DIR/${vhost}.csr" --webroot-path "$ACME_DIR" -n --agree-tos --cert-path="$CRT_DIR/${vhost}/${DATE}/cert.crt" --fullchain-path="$CRT_DIR/${vhost}/${DATE}/fullchain.pem" --chain-path="$CRT_DIR/${vhost}/${DATE}/chain.pem" "$emailopt" --logs-dir "$LOG_DIR" 2>&1 | grep -v "certbot.crypto_util"
if [ -f "$CRT_DIR/${vhost}/${DATE}/fullchain.pem" ]; then
ln -sf "$CRT_DIR/${vhost}/${DATE}" "$CRT_DIR/${vhost}/live"
rm -f live
ln -s "${DATE}" live
which apache2ctl >/dev/null && mkconf_apache
which nginx >/dev/null && mkconf_nginx
which haproxy >/dev/null && mkconf_haproxy