Explorar el Código

* Bug:configurarPHP() problemas al detectar directorio

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

+ 5 - 4
install

@@ -477,11 +477,12 @@ configurarNginx() {
 	elif [ $rhelOS = true ];then
 		nginxConfFile="./etc/nginx-rhel/*"
 	fi
-	if [ ! -d $nginxConfFile ];then
+	if [ -d "$nginxConfFile" ];then
+		cp -R $nginxConfFile /etc/nginx/ 2>/dev/null
+		comprobarError $? 107
+	else
 		comprobarError 1 107
 	fi
-	cp -R $nginxConfFile /etc/nginx/ 2>/dev/null
-	comprobarError $? 107
 	unset nginxConfFile
 }
 
@@ -489,7 +490,7 @@ mostrarDatabase() {
 	if [ $debianOS = true ]; then
 		database=$(whiptail --title "BASE DE DATOS" --radiolist "<ESPACIO>: seleccionar   <TAB>: cambiar   <FLECHAS>: moverse\n\nEscoge la base de datos que quieres usar:" $((ALTO * 9 / 10)) $((ANCHO * 9 / 10)) 2 \
 		"MariaDB" "Instalar la base de datos MariaDB (fork de MySQL)" ON \
-		"MySQL" "Instalar la base de datos MySQL (no para uso comercial)" OFF \
+		"MySQL" "Instalar la base de datos MySQL (uso no comercial)" OFF \
 		--ok-button "Continuar" --cancel-button "Salir" 3>&1 1>&2 2>&3)
 		comprobarError $? 1
 		case $database in