3 # This routine makes the appropriately configured
4 # Bacula tables for PostgreSQL or MySQL.
5 # SQLite does not have permissions.
8 default_db_type=@DEFAULT_DB_TYPE@
11 # See if the first argument is a valid backend name.
12 # If so the user overrides the default database backend.
38 # If no new db_type is gives use the default db_type.
40 if [ -z "${db_type}" ]; then
41 db_type="${default_db_type}"
44 echo "Granting ${db_type} privileges"
45 @scriptdir@/grant_${db_type}_privileges $*