pgsql.helper: forbid the user to choose an empty database set to backup
moved to lib/ some code that has to be shared between
backupninja and ninjahelper
added duplicity ninjahelper
- a bunch of Vserver-related functions for ninjahelper in lib/vservers.in
+ a bunch of Vserver-related functions for ninjahelper in lib/vservers.in,
+ used only in dup.helper and pgsql.helper yet
+ pgsql ninjahelper bugfixes:
+ forbid the user to choose an empty database set to backup
version 0.9.1 -- November 05 2005
rearranged source so that it is relocatable with autotools
}
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
}