]> 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 f8f7b3d0ca87be7598cc0eaa41e1383de75cabce..d18a8731fb8b72a2880b8e33eeb45ba987b943fb 100755 (executable)
@@ -4,19 +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
+  @scriptdir@/grant_mysql_privileges $*
 else
-  if test xpostgresql = x@DB_NAME@ ; then 
+  if test xpostgresql = x@DB_TYPE@ ; then 
     echo "Granting PostgreSQL privileges"
-    # hard coded database name
-    @scriptdir@/grant_postgresql_privileges bacula
+    @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"
-      # hard coded database name
-      @scriptdir@/grant_sqlite_privileges
+      @scriptdir@/grant_@DB_TYPE@_privileges $*
     fi
   fi
 fi