]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_bacula_database.in
02Aug05
[bacula/bacula] / bacula / src / cats / create_bacula_database.in
index 27e2efa46ade77aa6ad1529cfc9aaf3fcc03f2b2..6a3775f823d4219cd65a4a142c4fdd98d7287b13 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_NAME@ -o xsqlite3 = x@DB_NAME@ ; then
   echo "Creating SQLite database"
-  @scriptdir@/create_sqlite_database
+  @scriptdir@/create_@DB_NAME@_database $*
 else
   if test xmysql = x@DB_NAME@ ; then
     echo "Creating MySQL database"
     @scriptdir@/create_mysql_database $*
   else
     echo "Creating PostgreSQL database"
-    @scriptdir@/create_postgresql_database
+    @scriptdir@/create_postgresql_database $*
   fi
 fi