From 9fde10f57a6152655fe301bfe62041b3313c50c4 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Thu, 11 Dec 2003 19:55:10 +0000 Subject: [PATCH] For generic creation of a database git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@862 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/create_bacula_database.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bacula/src/cats/create_bacula_database.in diff --git a/bacula/src/cats/create_bacula_database.in b/bacula/src/cats/create_bacula_database.in new file mode 100644 index 0000000000..36be4582b0 --- /dev/null +++ b/bacula/src/cats/create_bacula_database.in @@ -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 -- 2.39.5