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