Parcourir la source

* generarCertLetsEncrypt(): MediaWiki y Moodle tienen que ser tratados por separado

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

+ 4 - 6
install

@@ -1301,11 +1301,10 @@ generarCertLetsEncrypt() {
 			fi
 			certbot -n --agree-tos --email "admin@$hostname" --apache --domains "$dominios" >> $logFile 2>&1
 			comprobarError $? 404
-		elif [ $moodleOn = true ];then
+		fi
+		if [ $moodleOn = true ];then
 			certbot -n --agree-tos --email "admin@$hostname" --apache --domains "$dominioMoodle" >> $logfile 2>&1
 			comprobarError $? 404
-		else
-			return 1
 		fi
 	elif [ $nginxOn = true ];then
 		# Usamos plugin para nginx
@@ -1317,11 +1316,10 @@ generarCertLetsEncrypt() {
 			fi
 			certbot -n --agree-tos --email "admin@$hostname" --nginx --domains "$dominios" >> $logFile 2>&1
 			comprobarError $? 404
-		elif [ $moodleOn = true ];then
+		fi
+		if [ $moodleOn = true ];then
 			certbot -n --agree-tos --email "admin@$hostname" --nginx --domains "$dominioMoodle" >> $logfile 2>&1
 			comprobarError $? 404
-		else
-			return 1
 		fi
 	else
 		comprobarError 1 404