]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_sqlite3_database.in
Tweak insert_autokey to use unsigned int64 instead of signed int64.
[bacula/bacula] / bacula / src / cats / drop_sqlite3_database.in
index 4af81af0ba92f24865a8462f79124f83c7f0f4f3..b405a7b46a9c83b2e9c0d8d71f2db2f9e0bc187a 100644 (file)
@@ -1,10 +1,12 @@
 #!/bin/sh
 #
 # shell script to drop Bacula SQLite tables
+db_name=@db_name@
 
-if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then 
+
+if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then 
   cd @working_dir@
-  rm -rf bacula.db
+  rm -rf ${db_name}.db
   echo "SQLite database dropped."
 else
   echo "Bacula is not configured for an SQLite database."