|
@@ -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
|