Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

breaking backup-manager on a broken postgresql installation.
  • Loading branch information...
commit d8e569852254507964e546277a7288443f992408 1 parent 450137a
Georgios M. Zarkadas authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/backup-methods.sh
View
6 lib/backup-methods.sh
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.