#!/bin/sh # # Copyright (C) 2000-2020 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # Shell script to update SQLite3 tables from Bacula # echo " " echo "This script will update a Bacula SQLite3 database from version 12-16 to 1022" echo " which is needed to convert from Bacula Enterprise version 4.0.x to 12.4.x" echo " or Bacula Community version 5.0.x, 5.2.x, 6.0.x to 11.0.x" echo " " bindir=@SQLITE_BINDIR@ PATH="$bindir:$PATH" cd @working_dir@ db_name=@db_name@ DBVERSION=`sqlite3 ${db_name}.db <