X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fcreate_bacula_database.in;h=77f9bfc41978b611be3907261523e1fa4e970419;hb=d6a2978cea17ce237b4ea9c71853cb96b9f4416f;hp=468e9c7a0d16b71881b1598f92dda14b0f2b0519;hpb=0a456dac37ac00ff6016b5eeb1761733c66dc4f2;p=bacula%2Fbacula diff --git a/bacula/src/cats/create_bacula_database.in b/bacula/src/cats/create_bacula_database.in index 468e9c7a0d..77f9bfc419 100644 --- a/bacula/src/cats/create_bacula_database.in +++ b/bacula/src/cats/create_bacula_database.in @@ -3,15 +3,15 @@ # This routine creates the Bacula database # using PostgreSQL, MySQL, or SQLite. # -if test xsqlite = x@DB_NAME@ ; then +if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then echo "Creating SQLite database" - @scriptdir@/create_sqlite_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 + @scriptdir@/create_mysql_database $* else echo "Creating PostgreSQL database" - @scriptdir@/create_postgresql_database + @scriptdir@/create_postgresql_database $* fi fi