From 858656cfc4cf94b2185ce74ad4eaf4aadc638e6f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 4 Dec 2009 18:36:35 +0100 Subject: [PATCH] Yet another tweak to create_postgresql_database.in --- bacula/src/cats/create_postgresql_database.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/cats/create_postgresql_database.in b/bacula/src/cats/create_postgresql_database.in index 896c2e6e01..38f793c3e4 100644 --- a/bacula/src/cats/create_postgresql_database.in +++ b/bacula/src/cats/create_postgresql_database.in @@ -10,7 +10,7 @@ db_name=@db_name@ # use SQL_ASCII to be able to put any filename into # the database even those created with unusual character sets -PSQLVERSION=`$bindir/psql --version | head -n1 | cut -d ' ' -f 3 | cut -d '.' -f 1,2` +PSQLVERSION=`$bindir/psql -d template1 -c 'select version()' | head -n1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2` # # Note, LC_COLLATE and LC_TYPE are needed on 8.4 and beyond, but are -- 2.39.5