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