From: Dan Langille Date: Thu, 11 Dec 2003 19:55:10 +0000 (+0000) Subject: For generic creation of a database X-Git-Tag: Release-7.0.0~9868 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fde10f57a6152655fe301bfe62041b3313c50c4;p=bacula%2Fbacula For generic creation of a database git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@862 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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