#!/bin/sh # # Copyright (C) 2000-2017 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # Shell script to update SQLite tables from Bacula Community version # 5.0.x, 5.2.x, 7.0.x, 7.2.x, 7.4.x # echo " " echo "This script will update a Bacula SQLite database from version 12-15 to 16" echo " " echo "Depending on the current version of your catalog, you may have to run this script" echo " multiple times" echo " " bindir=@SQLITE_BINDIR@ PATH="$bindir:$PATH" cd @working_dir@ db_name=@db_name@ DBVERSION=`sqlite3 ${db_name}.db <