This patch fixes some problems in update_sqlite3_tables.in from git origin/Branch-5.1:
1) The variable should be DBVERSION. 2) Undo a typo in the database name argument. 3) Put END on its own line to make it work on FreeBSD (non bash?). __Martin index 07d807c..d627976 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -15,9 +15,10 @@ cd @working_dir@ sqli...@db_type@ db_na...@db_name@ -DBV=`${sqlite} ${db_name} $sbin/regress.db <<END +DBVERSION=`${sqlite} ${db_name}.db <<END select VersionId from Version; -END` +END +` if [ $DBVERSION != 12 ] ; then echo " " echo "The existing database is version $DBVERSION !!" ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel