]> git.sur5r.net Git - bacula/bacula/commitdiff
Add this for symmetry
authorDan Langille <dan@langille.org>
Fri, 12 Dec 2003 16:08:33 +0000 (16:08 +0000)
committerDan Langille <dan@langille.org>
Fri, 12 Dec 2003 16:08:33 +0000 (16:08 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@875 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/grant_bacula_privileges.in [new file with mode: 0755]

diff --git a/bacula/src/cats/grant_bacula_privileges.in b/bacula/src/cats/grant_bacula_privileges.in
new file mode 100755 (executable)
index 0000000..6fdb1b1
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# This routine makes the appropriately configured
+#  Bacula tables for PostgreSQL or MySQL.
+# SQLite does not have permissions.
+#
+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
+fi