| 
				
			 | 
			
			
				@@ -479,9 +479,17 @@ function create_letsencrypt { 
			 | 
		
	
		
			
			| 
				479
			 | 
			
				479
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				480
			 | 
			
				480
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				481
			 | 
			
				481
			 | 
			
			
				     if [ ! -d /var/www/${new_domain} ]; then 
			 | 
		
	
		
			
			| 
				482
			 | 
			
				
			 | 
			
			
				-        dialog --title $"Create a new Let's Encrypt certificate" \ 
			 | 
		
	
		
			
			| 
				483
			 | 
			
				
			 | 
			
			
				-               --msgbox $'Domain not found within /var/www' 6 40 
			 | 
		
	
		
			
			| 
				484
			 | 
			
				
			 | 
			
			
				-        return 
			 | 
		
	
		
			
			| 
				
			 | 
			
				482
			 | 
			
			
				+        domain_found= 
			 | 
		
	
		
			
			| 
				
			 | 
			
				483
			 | 
			
			
				+        if [ -f /etc/nginx/sites-available/radicale ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				484
			 | 
			
			
				+            if grep "${new_domain}" /etc/nginx/sites-available/radicale; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				485
			 | 
			
			
				+                domain_found=1 
			 | 
		
	
		
			
			| 
				
			 | 
			
				486
			 | 
			
			
				+            fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				487
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				488
			 | 
			
			
				+        if [ ! $domain_found ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				489
			 | 
			
			
				+            dialog --title $"Create a new Let's Encrypt certificate" \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				490
			 | 
			
			
				+                   --msgbox $'Domain not found within /var/www' 6 40 
			 | 
		
	
		
			
			| 
				
			 | 
			
				491
			 | 
			
			
				+            return 
			 | 
		
	
		
			
			| 
				
			 | 
			
				492
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				485
			 | 
			
				493
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				486
			 | 
			
				494
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				487
			 | 
			
				495
			 | 
			
			
				     ${PROJECT_NAME}-addcert -e $new_domain -s $LETSENCRYPT_SERVER --dhkey $DH_KEYLENGTH 
			 |