]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/grant_bacula_privileges.in
Tweak insert_autokey to use unsigned int64 instead of signed int64.
[bacula/bacula] / bacula / src / cats / grant_bacula_privileges.in
index 73b5c18af639e63cf143a92ed0b80684a70766eb..d18a8731fb8b72a2880b8e33eeb45ba987b943fb 100755 (executable)
@@ -4,17 +4,20 @@
 #  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"
   @scriptdir@/grant_mysql_privileges $*
 else
-  if test xpostgresql = x@DB_NAME@ ; then 
+  if test xpostgresql = x@DB_TYPE@ ; then 
     echo "Granting PostgreSQL privileges"
     @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"
-      @scriptdir@/grant_sqlite_privileges $*
+      @scriptdir@/grant_@DB_TYPE@_privileges $*
     fi
   fi
 fi