X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fdrop_bacula_tables.in;h=6ae1003a34dda5855f0e6611e6900b099abd8c76;hb=37190d54ceff7f2b45a58a1c6241688cc5cba1c2;hp=2a1d2e62f74c4bc8ca326b5c4675a99b4c6dee90;hpb=c0cc6e1daaa0f37feb3cfeaceb43bda9d3a6a3f8;p=bacula%2Fbacula diff --git a/bacula/src/cats/drop_bacula_tables.in b/bacula/src/cats/drop_bacula_tables.in index 2a1d2e62f7..6ae1003a34 100755 --- a/bacula/src/cats/drop_bacula_tables.in +++ b/bacula/src/cats/drop_bacula_tables.in @@ -1,19 +1,19 @@ #!/bin/sh # # Drop Bacula tables -- works for whatever is configured, -# MySQL or SQLite +# MySQL, SQLite, or PostgreSQL # -if test xsqlite = x@DB_NAME@ ; then - . ./drop_sqlite_tables +if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then + @scriptdir@/drop_@DB_TYPE@_tables $* echo "Dropped SQLite tables" else - if test xmysql = x@DB_NAME@ ; then + if test xmysql = x@DB_TYPE@ ; then echo "Making MySQL tables" - . ./drop_mysql_tables + @scriptdir@/drop_mysql_tables $* echo "Dropped MySQL tables" else # hardcoded database name - should be a parameter - . ./drop_postgresql_tables bacula + @scriptdir@/drop_postgresql_tables $* echo "Dropped PostgreSQL tables" fi fi