X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fcreate_bacula_database.in;h=77f9bfc41978b611be3907261523e1fa4e970419;hb=a2bbe5fe90fa7b488146142f1c56af3e4da56867;hp=7ee767b133fb6ded05e9289d07d1d6ee9ce70df3;hpb=1b4996462095064a8a88204f2aee3185f9d74055;p=bacula%2Fbacula diff --git a/bacula/src/cats/create_bacula_database.in b/bacula/src/cats/create_bacula_database.in index 7ee767b133..77f9bfc419 100644 --- a/bacula/src/cats/create_bacula_database.in +++ b/bacula/src/cats/create_bacula_database.in @@ -3,11 +3,11 @@ # This routine creates the Bacula database # using 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 "Creating SQLite database" - @scriptdir@/create_@DB_NAME@_database + @scriptdir@/create_@DB_TYPE@_database else - if test xmysql = x@DB_NAME@ ; then + if test xmysql = x@DB_TYPE@ ; then echo "Creating MySQL database" @scriptdir@/create_mysql_database $* else