|
@@ -866,6 +866,16 @@ 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
|
|
|
}
|
|
|
|
|
@@ -910,6 +920,16 @@ 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
|