X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fupdate_bacula_tables.in;h=1e7edbadd30d3c06481ef26980e0b43b94cb8a32;hb=d6a2978cea17ce237b4ea9c71853cb96b9f4416f;hp=40b9a89a2e85350aa883fab85a474108971a3f55;hpb=7ab10bb18378708424afa3275f995308156f67c7;p=bacula%2Fbacula diff --git a/bacula/src/cats/update_bacula_tables.in b/bacula/src/cats/update_bacula_tables.in index 40b9a89a2e..1e7edbadd3 100755 --- a/bacula/src/cats/update_bacula_tables.in +++ b/bacula/src/cats/update_bacula_tables.in @@ -3,16 +3,15 @@ # This routine alters the appropriately configured # Bacula tables for PostgreSQL, MySQL, or SQLite. # -if test xsqlite = x@DB_NAME@ ; then +if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then echo "Altering SQLite tables" - @scriptdir@/update_sqlite_tables + @scriptdir@/update_@DB_TYPE@_tables $* fi -if test xmysql = x@DB_NAME@ ; then +if test xmysql = x@DB_TYPE@ ; then echo "Altering MySQL tables" @scriptdir@/update_mysql_tables $* fi -if test xpostgresql = x@DB_NAME@ ; then +if test xpostgresql = x@DB_TYPE@ ; then echo "Altering PostgreSQL tables" - # we need the bacula datbase name in here... Should not be hardcoded - @scriptdir@/update_postgresql_tables bacula + @scriptdir@/update_postgresql_tables $* fi