瀏覽代碼

* generarCertLetsEncrypt(): aceptar TOS y email

Guzmán Castanedo Villalba 5 年之前
父節點
當前提交
ad6dce306d
共有 1 個文件被更改,包括 4 次插入4 次删除
  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