From f0961d1cc1bb1c903c04dae878bb75e65d48b090 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Thu, 18 Dec 2003 13:35:29 +0000 Subject: [PATCH] grant sqlite privileges git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@888 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/grant_bacula_privileges.in | 13 ++++++++++--- bacula/src/cats/grant_sqlite_privileges.in | 7 +++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 bacula/src/cats/grant_sqlite_privileges.in diff --git a/bacula/src/cats/grant_bacula_privileges.in b/bacula/src/cats/grant_bacula_privileges.in index 6fdb1b12b1..8c2a1eaff5 100755 --- a/bacula/src/cats/grant_bacula_privileges.in +++ b/bacula/src/cats/grant_bacula_privileges.in @@ -8,7 +8,14 @@ if test xmysql = x@DB_NAME@ ; then echo "Granting MySQL privileges" . ./grant_mysql_privileges else - echo "Granting PostgreSQL privileges" - # hard coded database name - . ./grant_postgresql_privileges bacula + if test xpostgresql = x@DB_NAME@ ; then + echo "Granting PostgreSQL privileges" + # hard coded database name + . ./grant_postgresql_privileges bacula + else + if test xsqlite = x@DB_NAME@ ; then + echo "Granting SQLite privileges" + # hard coded database name + . ./grant_sqlite_privileges + fi fi diff --git a/bacula/src/cats/grant_sqlite_privileges.in b/bacula/src/cats/grant_sqlite_privileges.in new file mode 100644 index 0000000000..15d45474e3 --- /dev/null +++ b/bacula/src/cats/grant_sqlite_privileges.in @@ -0,0 +1,7 @@ +#!/bin/sh +# +# shell script to grant privileges to the bacula database +# +bindir=@SQL_BINDIR@ + +# nothing to do here \ No newline at end of file -- 2.39.5