]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/updatedb/update_mysql_tables_11_to_12.in
Recompile configure
[bacula/bacula] / bacula / updatedb / update_mysql_tables_11_to_12.in
index ea2afb67bd24090a0c1802d95a02e5d0972459a3..32a07c0d5da4c2eaeb239632df7a028402035969 100644 (file)
@@ -6,9 +6,9 @@ echo " "
 echo "This script will update a Bacula MySQL database from version 11 to 12"
 echo " which is needed to convert from Bacula Community version 3.0.x to 5.0.x"
 echo " "
-bindir=@SQL_BINDIR@
+bindir=@MYSQL_BINDIR@
 PATH="$bindir:$PATH"
-db_name=@db_name@
+db_name=${db_name:-@db_name@}
 
 mysql $* -D ${db_name} -e "select VersionId from Version\G" >/tmp/$$
 DBVERSION=`sed -n -e 's/^VersionId: \(.*\)$/\1/p' /tmp/$$`