evoacme: sed cert path after cert creation

This commit is contained in:
Jérémy Lecour 2017-10-13 11:18:15 +02:00 committed by Jérémy Lecour
parent 88600039d3
commit 6d6d0760cd

View file

@ -134,11 +134,6 @@ main() {
debug "Cert ${LIVE_CERT} expires at ${crt_end_date} => more than ${SSL_MINDAY} days: kthxbye."
exit 0
fi
else
# We don't have a live symlink yet
# Let's start from scratch and configure our web server(s)
command -v apache2ctl && sed_cert_path_for_apache "${VHOST}" "${LIVE_FULLCHAIN}"
command -v nginx && sed_cert_path_for_nginx "${VHOST}" "${LIVE_FULLCHAIN}"
fi
#### CERTIFICATE CREATION WITH CERTBOT
@ -195,6 +190,13 @@ main() {
#### CERTIFICATE ACTIVATION
if [ -h "${LIVE_DIR}" ]; then
# We don't have a live symlink yet
# Let's start from scratch and configure our web server(s)
command -v apache2ctl && sed_cert_path_for_apache "${VHOST}" "${LIVE_FULLCHAIN}"
command -v nginx && sed_cert_path_for_nginx "${VHOST}" "${LIVE_FULLCHAIN}"
fi
# link dance
if [ -h "${LIVE_DIR}" ]; then
rm "${LIVE_DIR}"