]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_sqlite_tables.in
kes Make database name and user configurable
[bacula/bacula] / bacula / src / cats / drop_sqlite_tables.in
index 1365db6f5d81a67f733adab1721069327dd68f96..f966f875defb066166e5cfb637fc687f3a6157b7 100644 (file)
@@ -1,7 +1,9 @@
 #!/bin/sh
 #
-# shell script to Delete the SQLite Bacula database (same as deleting 
-#  the tables)
+# shell script to Delete the SQLite tables, we simply delete and recreate
+#  the database.
 #
+db_name=@db_name@
 
-rm -f @working_dir@/bacula.db
+rm -f @working_dir@/${db_name}.db
+touch @working_dir@/${db_name}.db