]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_bacula_database.in
kes Apply libdbi patch from Joao Freitas for regress and for
[bacula/bacula] / bacula / src / cats / create_bacula_database.in
index 9609be8ad6d9aea69bf0834fd9d50e8cc06a3b94..77f9bfc41978b611be3907261523e1fa4e970419 100644 (file)
@@ -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 $*
   else
     echo "Creating PostgreSQL database"
-    @scriptdir@/create_postgresql_database template1
+    @scriptdir@/create_postgresql_database $*
   fi
 fi