]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_postgresql_database.in
Enhance mountcache with rescan option after interval.
[bacula/bacula] / bacula / src / cats / create_postgresql_database.in
index e5d8644b363fed931ed3a36665325567b3bb3a3d..ddd6c90db44d088fcd33417a1986314f4f8d770b 100644 (file)
@@ -3,14 +3,14 @@
 # shell script to create Bacula database(s)
 #
 
-PATH="@SQL_BINDIR@:$PATH"
+PATH="@POSTGRESQL_BINDIR@:$PATH"
 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