]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1761 about create_postgresql_database
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 30 Aug 2011 12:18:44 +0000 (14:18 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 30 Aug 2011 12:18:44 +0000 (14:18 +0200)
bacula/src/cats/create_postgresql_database.in

index a9fe0930d1aab30012d0250946f833007b7b530c..ddd6c90db44d088fcd33417a1986314f4f8d770b 100644 (file)
@@ -10,7 +10,7 @@ db_name=${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=`psql -d template1 -c 'select version()' | awk '/PostgreSQL/ {print $2}' | cut -d '.' -f 1,2`
+PSQLVERSION=`psql -d template1 -c 'select version()' $* | awk '/PostgreSQL/ {print $2}' | cut -d '.' -f 1,2`
 
 #
 # Note, LC_COLLATE and LC_TYPE are needed on 8.4 and beyond, but are