]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_tables.in
Add comment to crypto.h
[bacula/bacula] / bacula / src / cats / drop_bacula_tables.in
index 270608c0dda517d72b558938ee65c06f9417ae31..6ae1003a34dda5855f0e6611e6900b099abd8c76 100755 (executable)
@@ -1,19 +1,19 @@
 #!/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
+if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then
+  @scriptdir@/drop_@DB_TYPE@_tables $*
   echo "Dropped SQLite tables"
 else
-  if test xmysql = x@DB_NAME@ ; then 
+  if test xmysql = x@DB_TYPE@ ; 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
-    @scriptdir@/drop_postgresql_tables bacula
+    @scriptdir@/drop_postgresql_tables $*
     echo "Dropped PostgreSQL tables"
   fi
 fi