# Bacula tables for PostgreSQL or MySQL.
# SQLite does not have permissions.
#
-if test xmysql = x@DB_NAME@ ; then
+if test xmysql = x@DB_TYPE@ ; then
echo "Granting MySQL privileges"
- . ./grant_mysql_privileges
+ @scriptdir@/grant_mysql_privileges $*
else
- if test xpostgresql = x@DB_NAME@ ; then
+ if test xpostgresql = x@DB_TYPE@ ; then
echo "Granting PostgreSQL privileges"
- # hard coded database name
- . ./grant_postgresql_privileges bacula
+ @scriptdir@/grant_postgresql_privileges $*
+ elif test xingres = x@DB_TYPE@ ; then
+ echo "Granting Ingres privileges"
+ @scriptdir@/grant_ingres_privileges $*
else
- if test xsqlite = x@DB_NAME@ ; then
+ if test xsqlite3 = x@DB_TYPE@ ; then
echo "Granting SQLite privileges"
- # hard coded database name
- . ./grant_sqlite_privileges
+ @scriptdir@/grant_@DB_TYPE@_privileges $*
fi
fi
fi