|
@@ -867,16 +867,6 @@ configurarApache() {
|
|
|
if [ -f /etc/$webServerName/sites-enabled/000-default.conf ];then
|
|
|
rm -f /etc/$webServerName/sites-enabled/000-default.conf 2>/dev/null
|
|
|
fi
|
|
|
- # Eliminar Virtual Host que se van a reconfigurar
|
|
|
- if [ $mediaWikiOn = true ] && [ -f /etc/$webServerName/sites-enabled/$dominioMediaWiki.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/$dominioMediaWiki.conf 2>/dev/null
|
|
|
- fi
|
|
|
- if [ $moodleOn = true ] && [ -f /etc/$webServerName/sites-enabled/$dominioMoodle.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/$dominioMoodle.conf 2>/dev/null
|
|
|
- fi
|
|
|
- if [ $infoPHPOn = true ] && [ -f /etc/$webServerName/sites-enabled/localhost.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/localhost.conf 2>/dev/null
|
|
|
- fi
|
|
|
fi
|
|
|
}
|
|
|
|
|
@@ -921,16 +911,6 @@ configurarNginx() {
|
|
|
if [ -f /etc/$webServerName/sites-enabled/default ];then
|
|
|
rm -f /etc/$webServerName/sites-enabled/default 2>/dev/null
|
|
|
fi
|
|
|
- # Eliminar Virtual Host que se van a reconfigurar
|
|
|
- if [ $mediaWikiOn = true ] && [ -f /etc/$webServerName/sites-enabled/$dominioMediaWiki.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/$dominioMediaWiki.conf 2>/dev/null
|
|
|
- fi
|
|
|
- if [ $moodleOn = true ] && [ -f /etc/$webServerName/sites-enabled/$dominioMoodle.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/$dominioMoodle.conf 2>/dev/null
|
|
|
- fi
|
|
|
- if [ $infoPHPOn = true ] && [ -f /etc/$webServerName/sites-enabled/localhost.conf ];then
|
|
|
- rm -f /etc/$webServerName/sites-enabled/localhost.conf 2>/dev/null
|
|
|
- fi
|
|
|
fi
|
|
|
# Configuramos Usuario y Grupo
|
|
|
if [ $debianOS = true ];then
|
|
@@ -1315,7 +1295,7 @@ generarCertLetsEncrypt() {
|
|
|
# Usamos plugin para apache
|
|
|
if [ $mediaWikiOn = true ];then
|
|
|
if [ ! -z "$aliasMediaWiki" ];then
|
|
|
- dominios=$dominioMediaWiki","$(echo "$aliasMediaWiki" | sed -e 's/ /,/g')
|
|
|
+ dominios=$dominioMediaWiki$(echo "$aliasMediaWiki" | sed -e 's/ /,/g')
|
|
|
else
|
|
|
dominios=$dominioMediaWiki
|
|
|
fi
|
|
@@ -1331,7 +1311,7 @@ generarCertLetsEncrypt() {
|
|
|
# Usamos plugin para nginx
|
|
|
if [ $mediaWikiOn = true ];then
|
|
|
if [ ! -z "$aliasMediaWiki" ];then
|
|
|
- dominios=$dominioMediaWiki","$(echo "$aliasMediaWiki" | sed -e 's/ /,/g')
|
|
|
+ dominios=$dominioMediaWiki$(echo "$aliasMediaWiki" | sed -e 's/ /,/g')
|
|
|
else
|
|
|
dominios=$dominioMediaWiki
|
|
|
fi
|