]> git.sur5r.net Git - bacula/bacula/commitdiff
For generic creation of a database
authorDan Langille <dan@langille.org>
Thu, 11 Dec 2003 19:55:10 +0000 (19:55 +0000)
committerDan Langille <dan@langille.org>
Thu, 11 Dec 2003 19:55:10 +0000 (19:55 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@862 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/create_bacula_database.in [new file with mode: 0644]

diff --git a/bacula/src/cats/create_bacula_database.in b/bacula/src/cats/create_bacula_database.in
new file mode 100644 (file)
index 0000000..36be458
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# This routine creates the Bacula database
+#  using PostgreSQL, MySQL, or SQLite.
+#
+if test xsqlite = x@DB_NAME@ ; then
+  echo "Creating SQLite database"
+  . ./create_sqlite_database
+else
+  if test xmysql = x@DB_NAME@ ; then
+    echo "Creating MySQL database"
+    . ./create_mysql_database
+  else
+    echo "Creating PostgreSQL database"
+    . ./create_postgresql_database
+  fi
+fi