aboutsummaryrefslogtreecommitdiff
path: root/handlers/pgsql.helper
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/pgsql.helper')
-rw-r--r--handlers/pgsql.helper36
1 files changed, 19 insertions, 17 deletions
diff --git a/handlers/pgsql.helper b/handlers/pgsql.helper
index 1c8b4ef..aa807a5 100644
--- a/handlers/pgsql.helper
+++ b/handlers/pgsql.helper
@@ -7,23 +7,25 @@ do_pgsql_vserver() {
}
do_pgsql_databases() {
- formBegin "$pgsql_title: databases"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formItem "Database:"
- formDisplay
- [ $? = 1 ] && return
-
- pgsql_databases="databases = "
- for i in $REPLY; do
- [ "$i" != "" ] && pgsql_databases="$pgsql_databases $i"
+ REPLY=
+ while [ -z "$REPLY" ]; do
+ formBegin "$pgsql_title: databases"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formItem "Database:"
+ formDisplay
+ [ $? = 0 ] || return 1
+ pgsql_databases="databases = "
+ for i in $REPLY; do
+ [ -n "$i" ] && pgsql_databases="$pgsql_databases $i"
+ done
done
}