evoacme: fix symlink generation
This commit is contained in:
parent
0726d29796
commit
ff392d8e26
|
@ -60,7 +60,8 @@ main() {
|
||||||
chown -R acme: "$CRT_DIR/${vhost}"
|
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"
|
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
|
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 apache2ctl >/dev/null && mkconf_apache
|
||||||
which nginx >/dev/null && mkconf_nginx
|
which nginx >/dev/null && mkconf_nginx
|
||||||
which haproxy >/dev/null && mkconf_haproxy
|
which haproxy >/dev/null && mkconf_haproxy
|
||||||
|
|
Loading…
Reference in a new issue