diff --git a/bin/installbfa.sh b/bin/installbfa.sh
index cebc3c783abdaa9579fe40df4817e080d042518d..35fe02c693ea57cba83cb1e797ebb0602529fbe6 100755
--- a/bin/installbfa.sh
+++ b/bin/installbfa.sh
@@ -192,7 +192,10 @@ function welcome
 
 function setupquestions
 {
-    read -p "Donde quiere instalar (sera BFAHOME) [$( echo ~bfa/bfa )]? : " -t 60 BFAHOME
+    if [ -t 0 ]
+    then
+        read -p "Donde quiere instalar (sera BFAHOME) [$( echo ~bfa/bfa )]? : " -t 300 BFAHOME
+    fi
     if [ "$BFAHOME" = "" ]
     then
         BFAHOME=$( echo ~bfa/bfa )
@@ -201,27 +204,24 @@ function setupquestions
     if [ ! -e "${BFAHOME}/bin/env" ]
     then
         REPLY=
-        while [ "$REPLY" != "1" -a "$REPLY" != "2" ]
-        do
-            echo "Quiere conectarse a la red BFA de produccion o prueba?"
-            echo "1. Produccion"
-            echo "2. Prueba (test2)"
-            read -p "Red: " -t 60 -n 1
-        done
-        # Default to production
-        if [ "$REPLY" = "" ]
+        if [ -t 0 ]
         then
-            REPLY=1
+            while [ "$REPLY" != "1" -a "$REPLY" != "2" ]
+            do
+                echo "Quiere conectarse a la red BFA de produccion o prueba?"
+                echo "1. Produccion"
+                echo "2. Prueba (test2)"
+                read -p "Red: " -t 60 -n 1
+                echo
+            done
         fi
         case "$REPLY" in
-            1)
-                envfile=network/env
-                ;;
             2)
                 envfile=test2network/env
                 ;;
             *)
-                false
+                # Default to production
+                envfile=network/env
                 ;;
         esac
     fi
diff --git a/network/prod-env b/network/env
similarity index 100%
rename from network/prod-env
rename to network/env