#!/bin/sh # # Shell script to update PostgreSQL tables from version 11 to 12 # echo " " echo "This script will update a Bacula PostgreSQL database from version 11 to 12" echo " which is needed to convert from Bacula Enterprise 2.6 to 4.0 or " echo " Standard version 3.0 to 5.0" echo " " bindir=@SQL_BINDIR@ export PATH="$bindir:$PATH" db_name=@db_name@ if psql -f - -d ${db_name} $* <