]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_tables.in
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / cats / drop_bacula_tables.in
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