]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/drop_bacula_database.in
Fix open of SQLite3 db where user does not have write permission
[bacula/bacula] / bacula / src / cats / drop_bacula_database.in
1 #!/bin/sh
2 #
3 #  Drop Bacula database -- works for whatever is configured,
4 #    MySQL, SQLite, PostgreSQL
5 #
6 if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then
7   @scriptdir@/drop_@DB_NAME@_database $*
8 else
9   if test xmysql = x@DB_NAME@ ; then 
10     echo "Making MySQL database"
11     @scriptdir@/drop_mysql_database $*
12   else
13     @scriptdir@/drop_postgresql_database $*
14   fi
15 fi