]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/drop_bacula_tables.in
grant sqlite privileges
[bacula/bacula] / bacula / src / cats / drop_bacula_tables.in
1 #!/bin/sh
2 #
3 #  Drop Bacula tables -- works for whatever is configured,
4 #    MySQL or SQLite
5 #
6 if test xsqlite = x@DB_NAME@ ; then
7   . ./drop_sqlite_tables
8   echo "Dropped SQLite tables"
9 else
10   if test xmysql = x@DB_NAME@ ; then 
11     echo "Making MySQL tables"
12     . ./drop_mysql_tables
13     echo "Dropped MySQL tables"
14   else
15     # hardcoded database name - should be a parameter
16     . ./drop_postgresql_tables bacula
17     echo "Dropped PostgreSQL tables"
18   fi
19 fi