]> git.sur5r.net Git - bacula/bacula/commitdiff
grant sqlite privileges
authorDan Langille <dan@langille.org>
Thu, 18 Dec 2003 13:35:29 +0000 (13:35 +0000)
committerDan Langille <dan@langille.org>
Thu, 18 Dec 2003 13:35:29 +0000 (13:35 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@888 91ce42f0-d328-0410-95d8-f526ca767f89

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

index 6fdb1b12b1814d476c66487f9307555d0e8c8ded..8c2a1eaff5fffea8467b1db29b1f4562f0931eef 100755 (executable)
@@ -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 (file)
index 0000000..15d4547
--- /dev/null
@@ -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