#!/bin/sh # # Drop Bacula tables -- works for whatever is configured, # MySQL, SQLite, or PostgreSQL # if test xsqlite = xbdb -o xsqlite3 = xbdb ; then /etc/drop_bdb_tables $* echo "Dropped SQLite tables" else if test xmysql = xbdb ; then echo "Making MySQL tables" /etc/drop_mysql_tables $* echo "Dropped MySQL tables" else # hardcoded database name - should be a parameter /etc/drop_postgresql_tables $* echo "Dropped PostgreSQL tables" fi fi