]> git.sur5r.net Git - bacula/bacula/commitdiff
Move the database name to the command line rather than embedded in the
authorDan Langille <dan@langille.org>
Tue, 8 Jun 2004 11:37:21 +0000 (11:37 +0000)
committerDan Langille <dan@langille.org>
Tue, 8 Jun 2004 11:37:21 +0000 (11:37 +0000)
coammnds.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1392 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/grant_postgresql_privileges.in
bacula/src/cats/make_postgresql_tables.in

index fc69abd1f11d1bfa366487ada2b5b6d091b465ba..1a3b9dbb04ddbbec43e7bb30ea9b30aba1b3a8c8 100644 (file)
@@ -5,8 +5,7 @@
 USER=bacula
 bindir=@SQL_BINDIR@
 
-if $bindir/psql $* -f - <<END-OF-DATA
-\c bacula
+if $bindir/psql $* bacula -f - <<END-OF-DATA
 
 create user ${USER};
 
index 9f7131c48d608f56d0f442c04163246cc433a877..f5ec9cdbb0866404ece807f401315b21fea5cee1 100644 (file)
@@ -4,8 +4,7 @@
 #
 bindir=@SQL_BINDIR@
 
-if $bindir/psql $* -f - <<END-OF-DATA
-\c bacula
+if $bindir/psql $* bacula -f - <<END-OF-DATA
 
 create table version
 (