3 # This routine makes the appropriately configured
4 # Bacula tables for PostgreSQL or MySQL.
5 # SQLite does not have permissions.
8 # Bacula® - The Network Backup Solution
10 # Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
12 # The main author of Bacula is Kern Sibbald, with contributions from many
13 # others, a complete list can be found in the file AUTHORS.
15 # You may use this file and others of this release according to the
16 # license defined in the LICENSE file, which includes the Affero General
17 # Public License, v3.0 ("AGPLv3") and some additional permissions and
18 # terms pursuant to its AGPLv3 Section 7.
20 # Bacula® is a registered trademark of Kern Sibbald.
23 default_db_type=@DEFAULT_DB_TYPE@
26 # See if the first argument is a valid backend name.
27 # If so the user overrides the default database backend.
53 # If no new db_type is gives use the default db_type.
55 if [ -z "${db_type}" ]; then
56 db_type="${default_db_type}"
59 echo "Granting ${db_type} privileges"
60 @scriptdir@/grant_${db_type}_privileges $*