delete previous cert if it already exists before invoking evoacme

pull/63/head
Nicolas Roman 4 years ago
parent 7d026c907b
commit c5c1648a58

@ -907,6 +907,9 @@ op_generatesslcertificate() {
test_mode="$2"
if [ "$test_mode" = "false" ]; then
if [ -L /etc/letsencrypt/$vhost/live ]; then
rm /etc/letsencrypt/$vhost/live
fi
evoacme "$vhost"
else
DRY_RUN=1 evoacme "$vhost"

Loading…
Cancel
Save