]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/grant_bacula_privileges.in
Cleanup, change FROM order
[bacula/bacula] / bacula / src / cats / grant_bacula_privileges.in
index b064553c14d0ed325c9162ae4166aacaa30aa8c0..5e9f4e735f1d985f5f66e7fb42f7b47a15e09be5 100755 (executable)
@@ -4,17 +4,17 @@
 #  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 $*
   else
-    if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then 
+    if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then 
       echo "Granting SQLite privileges"
-      @scriptdir@/grant_@DB_NAME@_privileges $*
+      @scriptdir@/grant_@DB_TYPE@_privileges $*
     fi
   fi
 fi