]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_sqlite_database.in
- Fix ANSI labels to put EOF1 and EOF2 after each file mark.
[bacula/bacula] / bacula / src / cats / drop_sqlite_database.in
index ece801c9b68cdf5ae76adc9a188995b47b23e7a4..4af81af0ba92f24865a8462f79124f83c7f0f4f3 100644 (file)
@@ -2,5 +2,10 @@
 #
 # shell script to drop Bacula SQLite tables
 
-cd @working_dir@
-rm -rf bacula.db
+if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then 
+  cd @working_dir@
+  rm -rf bacula.db
+  echo "SQLite database dropped."
+else
+  echo "Bacula is not configured for an SQLite database."
+fi