#!/bin/sh # # Shell script to update PostgreSQL tables from version 2.0.0 to 3.0.0 or higher # echo " " echo "This script will update a Bacula PostgreSQL database from version 10 to 11" echo " which is needed to convert from Bacula version 2.0.0 to 3.0.x or higher" echo " " bindir=@POSTGRESQL_BINDIR@ PATH="$bindir:$PATH" db_name=${db_name:-@db_name@} psql -f - -d ${db_name} $* <