Parcourir la source

Allow certs for domains which are available

Bob Mottram il y a 8 ans
Parent
révision
96cfc5c40e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      src/freedombone-sec

+ 3
- 0
src/freedombone-sec Voir le fichier

@@ -485,6 +485,9 @@ function create_letsencrypt {
485 485
                 domain_found=1
486 486
             fi
487 487
         fi
488
+        if [ -f /etc/nginx/sites-available/${new_domain} ]; then
489
+            domain_found=1
490
+        fi
488 491
         if [ ! $domain_found ]; then
489 492
             dialog --title $"Create a new Let's Encrypt certificate" \
490 493
                    --msgbox $'Domain not found within /var/www' 6 40