#!/bin/sh # # Copyright (C) 2000-2015 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # Shell script to update MySQL tables from version 2.0 to 3.0 # echo " " echo "This script will update a Bacula MySQL database from version 10 to 11" echo " which is needed to convert from Bacula version 2.0.x to 3.0.x or higher" echo " " bindir=@MYSQL_BINDIR@ PATH="$bindir:$PATH" db_name=${db_name:-@db_name@} if mysql $* -f <