Explorar el Código

* Bug: corrección de ruta de ficheros

Guzmán Castanedo Villalba hace 6 años
padre
commit
e1045175dc
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      install

+ 4 - 4
install

@@ -488,12 +488,12 @@ instalarApache() {
 
 configurarApache() {
 	if [ $rhelOS = true ];then
-		apacheConfFile="./etc/$webServerName-rhel/conf/httpd.conf"
+		apacheConfFile="./etc/apache2-rhel/conf/httpd.conf"
 		welcomeConfFile="/etc/$webServerName/conf.d/welcome.conf"
 		if [ ! -f $apacheConfFile ];then
 			comprobarError 1 4 $apacheConfFile
 		fi
-		cp -f $apacheConfFile /etc/httpd/conf/ 2>/dev/null
+		cp -f $apacheConfFile "/etc/$webServerName/conf/" 2>/dev/null
 		comprobarError $? 108
 		if [ -f $welcomeConfFile ];then
 			sed -i -e 's/^/#/' $welcomeConfFile
@@ -522,7 +522,7 @@ instalarNginx() {
 
 configurarNginx() {
 	# Configuramos Nginx
-	rm -Rf /etc/nginx/* 2>/dev/null
+	rm -Rf "/etc/$webServerName/*" 2>/dev/null
 	comprobarError $? 107
 	if [ $debianOS = true ];then
 		nginxConfFile="./etc/nginx-debian"
@@ -530,7 +530,7 @@ configurarNginx() {
 		nginxConfFile="./etc/nginx-rhel"
 	fi
 	if [ -d "$nginxConfFile" ];then
-		cp -Rf $nginxConfFile/* /etc/nginx/ 2>/dev/null
+		cp -Rf "$nginxConfFile/*" "/etc/$webServerName/" 2>/dev/null
 		comprobarError $? 107
 	else
 		comprobarError 1 5 "$nginxConfFile"