]> git.sur5r.net Git - bacula/bacula/commitdiff
When invoking the mysql script, pass in $*
authorDan Langille <dan@langille.org>
Sun, 21 Dec 2003 22:18:32 +0000 (22:18 +0000)
committerDan Langille <dan@langille.org>
Sun, 21 Dec 2003 22:18:32 +0000 (22:18 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@926 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/create_bacula_database.in
bacula/src/cats/drop_bacula_tables.in
bacula/src/cats/grant_bacula_privileges.in
bacula/src/cats/make_bacula_tables.in
bacula/src/cats/update_bacula_tables.in

index 468e9c7a0d16b71881b1598f92dda14b0f2b0519..27e2efa46ade77aa6ad1529cfc9aaf3fcc03f2b2 100644 (file)
@@ -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
index 270608c0dda517d72b558938ee65c06f9417ae31..4ff69a54f10dba93ac2b3ef13dd8c4f3718d191b 100755 (executable)
@@ -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
index f8f7b3d0ca87be7598cc0eaa41e1383de75cabce..ba2b8a04cf4c64b2a7c9a8308ee89175b2e00381 100755 (executable)
@@ -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"
index 58cab959f543763b00c67f27ccbcb4902e5061cb..1759dd7a631f804e6bbaef0aa3c90091b1f3a767 100755 (executable)
@@ -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
index 500287136393d04e7bdf003c2a846c4183ea6a9c..40b9a89a2e85350aa883fab85a474108971a3f55 100755 (executable)
@@ -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"