]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/create_bacula_database.in
Merge branch 'master' into basejobv3
[bacula/bacula] / bacula / src / cats / create_bacula_database.in
1 #!/bin/sh
2 #
3 # This routine creates the Bacula database
4 #  using PostgreSQL, MySQL, or SQLite.
5 #
6 if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then
7   echo "Creating SQLite database"
8   @scriptdir@/create_@DB_TYPE@_database
9 else
10   if test xmysql = x@DB_TYPE@ ; then
11     echo "Creating MySQL database"
12     @scriptdir@/create_mysql_database $*
13   else
14     echo "Creating PostgreSQL database"
15     @scriptdir@/create_postgresql_database $*
16   fi
17 fi