X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fupdate_bacula_tables.in;h=1e7edbadd30d3c06481ef26980e0b43b94cb8a32;hb=d6a2978cea17ce237b4ea9c71853cb96b9f4416f;hp=d640da17c31f67d0833e73c3873dbc834b1b051f;hpb=bb2dd1b87f7b8c781404c4bc97de23446bb6eaf2;p=bacula%2Fbacula diff --git a/bacula/src/cats/update_bacula_tables.in b/bacula/src/cats/update_bacula_tables.in index d640da17c3..1e7edbadd3 100755 --- a/bacula/src/cats/update_bacula_tables.in +++ b/bacula/src/cats/update_bacula_tables.in @@ -3,15 +3,15 @@ # This routine alters the appropriately configured # Bacula tables for PostgreSQL, MySQL, or SQLite. # -if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then +if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then echo "Altering SQLite tables" - @scriptdir@/update_@DB_NAME@_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" @scriptdir@/update_postgresql_tables $* fi