confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit 56e01f0d5ded8d37c07491a9b0633810d75e4115
parent ad7bf80974f1759759836ac6d2fab4af840cc8f7
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Mon,  4 May 2015 20:42:20 +0200

query the proper database
Diffstat:
Mzsh-functions/confz_postgresql_init | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zsh-functions/confz_postgresql_init b/zsh-functions/confz_postgresql_init @@ -151,7 +151,7 @@ confz_postgresql_schema_check() { ) local out schema owner - out=$( confz_do $vars[psql] $opts -AP tuples_only=on -c '\dn' ) || die "psql failed" + out=$( confz_do $vars[psql] $opts -AP tuples_only=on -c '\dn' $vars[db] ) || die "psql failed" while IFS='|' read schema owner; do if [[ $schema == $vars[schema_name] ]]; then [[ $owner == $vars[owner] ]] || \ @@ -181,7 +181,7 @@ confz_postgresql_extension_check() { ) local out extension version schema comment - out=$( confz_do $vars[psql] $opts -AP tuples_only=on -c '\dn' ) || die "psql failed" + out=$( confz_do $vars[psql] $opts -AP tuples_only=on -c '\dn' $vars[db] ) || die "psql failed" while IFS='|' read extension version schema comment; do if [[ $extension == $vars[extension] ]]; then [[ $schema == $vars[schema_name] ]] || \