From: Martin S. <ma...@li...> - 2010-12-30 17:25:14
|
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@ sqlite=@DB_TYPE@ db_name=@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 !!" |