From ff392d8e269498f1b8cb7acf9fd63fce9fa1b67c Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 5 Sep 2017 13:40:01 +0200 Subject: [PATCH] evoacme: fix symlink generation --- evoacme/files/evoacme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evoacme/files/evoacme.sh b/evoacme/files/evoacme.sh index 1715f8db..a972c04f 100755 --- a/evoacme/files/evoacme.sh +++ b/evoacme/files/evoacme.sh @@ -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