X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fupdate_bacula_tables.in;h=1e7edbadd30d3c06481ef26980e0b43b94cb8a32;hb=d6a2978cea17ce237b4ea9c71853cb96b9f4416f;hp=5a7dc8926149c3a87fa0bc827dd33f69e42612eb;hpb=de1e776630d1f82a3c9a71402a6ba29858ba2dcc;p=bacula%2Fbacula diff --git a/bacula/src/cats/update_bacula_tables.in b/bacula/src/cats/update_bacula_tables.in index 5a7dc89261..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@ ; 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" @scriptdir@/update_postgresql_tables $* fi