Explorar el Código

* Bug: configurarNginx() error resuelto

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

+ 3 - 3
install

@@ -479,12 +479,12 @@ configurarNginx() {
 	rm -Rf /etc/nginx/* 2>/dev/null
 	comprobarError $? 107
 	if [ $debianOS = true ];then
-		nginxConfFile="./etc/nginx-debian/*"
+		nginxConfFile="./etc/nginx-debian"
 	elif [ $rhelOS = true ];then
-		nginxConfFile="./etc/nginx-rhel/*"
+		nginxConfFile="./etc/nginx-rhel"
 	fi
 	if [ -d "$nginxConfFile" ];then
-		cp -R $nginxConfFile /etc/nginx/ 2>/dev/null
+		cp -R $nginxConfFile/* /etc/nginx/ 2>/dev/null
 		comprobarError $? 107
 	else
 		comprobarError 1 5 "$nginxConfFile"