Parcourir la source

* generarCertLetsEncrypt(): aceptar TOS y email

Guzmán Castanedo Villalba il y a 5 ans
Parent
commit
ad6dce306d
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      install

+ 4 - 4
install

@@ -1298,10 +1298,10 @@ generarCertLetsEncrypt() {
 			else
 				dominios=$dominioMediaWiki
 			fi
-			certbot -n --apache --domains "$dominios" >> $logFile 2>&1
+			certbot -n --agree-tos --email "admin@$hostname" --apache --domains "$dominios" >> $logFile 2>&1
 			comprobarError $? 404
 		elif [ $moodleOn = true ];then
-			certbot -n --apache --domains "$dominioMoodle" >> $logfile 2>&1
+			certbot -n --agree-tos --email "admin@$hostname" --apache --domains "$dominioMoodle" >> $logfile 2>&1
 			comprobarError $? 404
 		else
 			return 1
@@ -1314,10 +1314,10 @@ generarCertLetsEncrypt() {
 			else
 				dominios=$dominioMediaWiki
 			fi
-			certbot -n --nginx --domains "$dominios" >> $logFile 2>&1
+			certbot -n --agree-tos --email "admin@$hostname" --nginx --domains "$dominios" >> $logFile 2>&1
 			comprobarError $? 404
 		elif [ $moodleOn = true ];then
-			certbot -n --nginx --domains "$dominioMoodle" >> $logfile 2>&1
+			certbot -n --agree-tos --email "admin@$hostname" --nginx --domains "$dominioMoodle" >> $logfile 2>&1
 			comprobarError $? 404
 		else
 			return 1