]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_database.in
- Fix ANSI labels to put EOF1 and EOF2 after each file mark.
[bacula/bacula] / bacula / src / cats / drop_bacula_database.in
index d4aed3e00e4a9624af00dde95bfa1b5530d86c3d..d77908c162272ff0e2687ae1a9d1464d584d1b0e 100755 (executable)
@@ -3,17 +3,13 @@
 #  Drop Bacula database -- works for whatever is configured,
 #    MySQL, SQLite, PostgreSQL
 #
-if test xsqlite = x@DB_NAME@ ; then
-  @scriptdir@/drop_sqlite_database
-  echo "Dropped SQLite database"
+if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then
+  @scriptdir@/drop_@DB_NAME@_database $*
 else
   if test xmysql = x@DB_NAME@ ; then 
     echo "Making MySQL database"
     @scriptdir@/drop_mysql_database $*
-    echo "Dropped MySQL database"
   else
-    # hardcoded database name - should be a parameter
-    @scriptdir@/drop_postgresql_database bacula
-    echo "Dropped PostgreSQL database"
+    @scriptdir@/drop_postgresql_database $*
   fi
 fi