From: Kern Sibbald Date: Fri, 4 Dec 2009 17:36:35 +0000 (+0100) Subject: Yet another tweak to create_postgresql_database.in X-Git-Tag: Release-7.0.0~2516 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0f581b9e3a003aa2e0093a81e0790ece6b8bed2;p=bacula%2Fbacula Yet another tweak to create_postgresql_database.in --- 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