#!/bin/sh
#
# This routine makes the appropriately configured
#  Bacula tables for PostgreSQL or MySQL.
# SQLite does not have permissions.
#
if test xmysql = xsqlite ; then 
  echo "Granting MySQL privileges"
  /usr/local/libexec/bacula/grant_mysql_privileges $*
else
  if test xpostgresql = xsqlite ; then 
    echo "Granting PostgreSQL privileges"
    /usr/local/libexec/bacula/grant_postgresql_privileges $*
  else
    if test xsqlite = xsqlite -o xsqlite3 = xsqlite ; then 
      echo "Granting SQLite privileges"
      /usr/local/libexec/bacula/grant_sqlite_privileges $*
    fi
  fi
fi
