Explorar el Código

* generarCertLetsEncrypt(): aceptar TOS y email

Guzmán Castanedo Villalba hace 5 años
padre
commit
ad6dce306d
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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