]> git.sur5r.net Git - bacula/bacula/commitdiff
Fixes some problems in update_sqlite3_tables.in
authorMartin Simmons <martin@lispworks.com>
Thu, 30 Dec 2010 17:35:04 +0000 (18:35 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 30 Dec 2010 17:43:46 +0000 (18:43 +0100)
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?).

bacula/src/cats/update_sqlite3_tables.in

index 07d807c3dfbffbe63c805265887cb50db1c0f489..d627976c51c8ca347ea3e79474b0941ac629d287 100644 (file)
@@ -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 !!"