delete previous cert if it already exists before invoking evoacme

This commit is contained in:
Nicolas Roman 2019-07-17 15:38:59 +02:00
parent 7d026c907b
commit c5c1648a58
1 changed files with 3 additions and 0 deletions

View File

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