From: Dan Langille Date: Thu, 18 Dec 2003 13:35:29 +0000 (+0000) Subject: grant sqlite privileges X-Git-Tag: Release-7.0.0~9842 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cd07d59785e2ec5fe8ff631f57f35d131e973b0;p=bacula%2Fbacula grant sqlite privileges git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@888 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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