#!/bin/sh
#
# This routine makes the appropriately configured
#  Bacula tables for PostgreSQL or MySQL.
# SQLite does not have permissions.
#
DB_TYPE=`ls /etc/bacula/scripts/grant_[mpsi]*_privileges | cut -d'_' -f2`

echo "Granting ${DB_TYPE} privileges"
/etc/bacula/scripts/grant_${DB_TYPE}_privileges $*
