#!/bin/sh
#
# This routine makes the appropriately configured
#  Bacula tables for PostgreSQL or MySQL.
# SQLite does not have permissions.
#
if test xmysql = x@DB_NAME@ ; then 
  echo "Granting MySQL privileges"
  @scriptdir@/grant_mysql_privileges $*
else
  if test xpostgresql = x@DB_NAME@ ; then 
    echo "Granting PostgreSQL privileges"
    @scriptdir@/grant_postgresql_privileges $*
  else
    if test xsqlite = x@DB_NAME@ ; then 
      echo "Granting SQLite privileges"
      @scriptdir@/grant_sqlite_privileges $*
    fi
  fi
fi
