Explorar el Código

* Bug: $nginxConfFile is a dir

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

+ 2 - 2
install

@@ -18,7 +18,7 @@ comprobarError() {
 	#	6xx: Moodle
 	#	7xx: Actualizaciones automáticas
 	#	8xx: Dependencias
-	#	9xx: Servicios
+	#	9xx: Servicios & Firewall
 	type="ERROR"
 	exitNum=$1
 	codeNum=$2
@@ -475,7 +475,7 @@ configurarNginx() {
 	elif [ $rhelOS = true ];then
 		nginxConfFile="./etc/nginx-rhel/*"
 	fi
-	if [ ! -f $nginxConfFile ];then
+	if [ ! -d $nginxConfFile ];then
 		comprobarError 1 107
 	fi
 	cp -R $nginxConfFile /etc/nginx/ 2>/dev/null