X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fmake_bacula_tables.in;h=a71462d2308e5b6163160b2632d12835a2b1911f;hb=f8f848fdb5aace95292d905dc60fe0de45521859;hp=b4f5d19ad6abef1d9edee83e41f5d5acc43651a1;hpb=61985ad10389ae63b92bba34b35e095347520a5c;p=bacula%2Fbacula diff --git a/bacula/src/cats/make_bacula_tables.in b/bacula/src/cats/make_bacula_tables.in index b4f5d19ad6..a71462d230 100755 --- a/bacula/src/cats/make_bacula_tables.in +++ b/bacula/src/cats/make_bacula_tables.in @@ -1,12 +1,17 @@ #!/bin/sh # # This routine makes the appropriately configured -# Bacula tables for either MySQL or SQLite +# Bacula tables for PostgreSQL, MySQL, or SQLite. # -if test xsqlite = x@DB_NAME@ ; then +if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then echo "Making SQLite tables" - source ./make_sqlite_tables + @scriptdir@/make_@DB_NAME@_tables $* else - echo "Making MySQL tables" - source ./make_mysql_tables + if test xmysql = x@DB_NAME@ ; then + echo "Making MySQL tables" + @scriptdir@/make_mysql_tables $* + else + echo "Making PostgreSQL tables" + @scriptdir@/make_postgresql_tables $* + fi fi