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