Use self-signed cert on certbot error

This commit is contained in:
Victor LABORIE 2016-11-22 15:17:35 +01:00
parent 54703f1996
commit c75056f916

View file

@ -400,7 +400,9 @@ make_csr() {
# Enable autosigned CRT
rm -f $CRT_DIR/${vhost}*
if [ -z $no_valid ]; then
evoacme ${vhost}
if ! evoacme ${vhost} ; then
ln -s $AUTO_CRT_DIR/${vhost}.pem $CRT_DIR/${vhost}-fullchain.pem
fi
else
ln -s $AUTO_CRT_DIR/${vhost}.pem $CRT_DIR/${vhost}-fullchain.pem