瀏覽代碼

* Bug: configurarNginx() error resuelto

Guzmán Castanedo Villalba 6 年之前
父節點
當前提交
58670cfb5b
共有 1 個文件被更改,包括 3 次插入3 次删除
  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"