Permalink
Browse files

Test for all database dumping programs that postgresql uses, to avoid

breaking backup-manager on a broken postgresql installation.
  • Loading branch information...
1 parent 450137a commit d8e569852254507964e546277a7288443f992408 Georgios M. Zarkadas committed Dec 25, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/backup-methods.sh
View
@@ -885,8 +885,10 @@ function backup_method_pgsql()
debug "backup_method_pgsql ($method)"
info "Using method \"\$method\"."
- if [[ ! -x $pgdump ]]; then
- error "The \"pgsql\" method is chosen, but \$pgdump is not found."
+ if [[ -x $pgdump ]] && [[ -x ${pgdump}all ]]; then
+ :
+ else
+ error "The \"postgresql\" method is chosen, but \$pgdump and/or \$pgdumpall are not found."
fi
# Allow empty host when connecting to postgress with unix sockets.

0 comments on commit d8e5698

Please sign in to comment.