]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/update_mysql_tables.in
Correct compile error
[bacula/bacula] / bacula / src / cats / update_mysql_tables.in
index 6ce5469c7669caf31d0d297f493d734fc3390b32..ce2fd2a62e8827e67205b47fb4fac53653fc3567 100755 (executable)
@@ -9,9 +9,10 @@ echo "Depending on the size of your database,"
 echo "this script may take several minutes to run."
 echo " "
 bindir=@SQL_BINDIR@
+db_name=@db_name@
 
 if $bindir/mysql $* -f <<END-OF-DATA
-USE bacula;
+USE ${db_name};
 
 DROP TABLE IF EXISTS MAC;
 DROP TABLE IF EXISTS Log;