From 7ab10bb18378708424afa3275f995308156f67c7 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Sun, 21 Dec 2003 22:18:32 +0000 Subject: [PATCH] When invoking the mysql script, pass in $* git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@926 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/create_bacula_database.in | 2 +- bacula/src/cats/drop_bacula_tables.in | 4 ++-- bacula/src/cats/grant_bacula_privileges.in | 2 +- bacula/src/cats/make_bacula_tables.in | 2 +- bacula/src/cats/update_bacula_tables.in | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bacula/src/cats/create_bacula_database.in b/bacula/src/cats/create_bacula_database.in index 468e9c7a0d..27e2efa46a 100644 --- a/bacula/src/cats/create_bacula_database.in +++ b/bacula/src/cats/create_bacula_database.in @@ -9,7 +9,7 @@ if test xsqlite = x@DB_NAME@ ; then else if test xmysql = x@DB_NAME@ ; then echo "Creating MySQL database" - @scriptdir@/create_mysql_database + @scriptdir@/create_mysql_database $* else echo "Creating PostgreSQL database" @scriptdir@/create_postgresql_database diff --git a/bacula/src/cats/drop_bacula_tables.in b/bacula/src/cats/drop_bacula_tables.in index 270608c0dd..4ff69a54f1 100755 --- a/bacula/src/cats/drop_bacula_tables.in +++ b/bacula/src/cats/drop_bacula_tables.in @@ -1,7 +1,7 @@ #!/bin/sh # # Drop Bacula tables -- works for whatever is configured, -# MySQL or SQLite +# MySQL, SQLite, or PostgreSQL # if test xsqlite = x@DB_NAME@ ; then @scriptdir@/drop_sqlite_tables @@ -9,7 +9,7 @@ if test xsqlite = x@DB_NAME@ ; then else if test xmysql = x@DB_NAME@ ; then echo "Making MySQL tables" - @scriptdir@/drop_mysql_tables + @scriptdir@/drop_mysql_tables $* echo "Dropped MySQL tables" else # hardcoded database name - should be a parameter diff --git a/bacula/src/cats/grant_bacula_privileges.in b/bacula/src/cats/grant_bacula_privileges.in index f8f7b3d0ca..ba2b8a04cf 100755 --- a/bacula/src/cats/grant_bacula_privileges.in +++ b/bacula/src/cats/grant_bacula_privileges.in @@ -6,7 +6,7 @@ # if test xmysql = x@DB_NAME@ ; then echo "Granting MySQL privileges" - @scriptdir@/grant_mysql_privileges + @scriptdir@/grant_mysql_privileges $* else if test xpostgresql = x@DB_NAME@ ; then echo "Granting PostgreSQL privileges" diff --git a/bacula/src/cats/make_bacula_tables.in b/bacula/src/cats/make_bacula_tables.in index 58cab959f5..1759dd7a63 100755 --- a/bacula/src/cats/make_bacula_tables.in +++ b/bacula/src/cats/make_bacula_tables.in @@ -9,7 +9,7 @@ if test xsqlite = x@DB_NAME@ ; then else if test xmysql = x@DB_NAME@ ; then echo "Making MySQL tables" - @scriptdir@/make_mysql_tables + @scriptdir@/make_mysql_tables $* else echo "Making PostgreSQL tables" # hard coded database name diff --git a/bacula/src/cats/update_bacula_tables.in b/bacula/src/cats/update_bacula_tables.in index 5002871363..40b9a89a2e 100755 --- a/bacula/src/cats/update_bacula_tables.in +++ b/bacula/src/cats/update_bacula_tables.in @@ -9,7 +9,7 @@ if test xsqlite = x@DB_NAME@ ; then fi if test xmysql = x@DB_NAME@ ; then echo "Altering MySQL tables" - @scriptdir@/update_mysql_tables + @scriptdir@/update_mysql_tables $* fi if test xpostgresql = x@DB_NAME@ ; then echo "Altering PostgreSQL tables" -- 2.39.5