Explorar el Código

* Bug: más cambios en la ruta de archivos

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

+ 3 - 3
install

@@ -488,7 +488,7 @@ instalarApache() {
 
 configurarApache() {
 	if [ $rhelOS = true ];then
-		apacheConfFile="./etc/apache2-rhel/conf/httpd.conf"
+		apacheConfFile="./etc/$webServerName-rhel/conf/httpd.conf"
 		welcomeConfFile="/etc/$webServerName/conf.d/welcome.conf"
 		if [ ! -f $apacheConfFile ];then
 			comprobarError 1 4 $apacheConfFile
@@ -533,9 +533,9 @@ configurarNginx() {
 	rm -Rf "/etc/$webServerName/*" 2>/dev/null
 	comprobarError $? 107
 	if [ $debianOS = true ];then
-		nginxConfFile="./etc/nginx-debian"
+		nginxConfFile="./etc/$webServerName-debian"
 	elif [ $rhelOS = true ];then
-		nginxConfFile="./etc/nginx-rhel"
+		nginxConfFile="./etc/$webServerName-rhel"
 	fi
 	if [ -d "$nginxConfFile" ];then
 		cp -Rf "$nginxConfFile/*" "/etc/$webServerName/" 2>/dev/null