--- src/cats/make_catalog_backup.in 2007-04-24 17:36:15.000000000 +0200 +++ src/cats/make_catalog_backup.in.oden 2007-09-03 15:21:25.000000000 +0200 @@ -17,10 +17,10 @@ cd @working_dir@ rm -f $1.sql -if test xsqlite = x@DB_TYPE@ ; then +if test -x @sbindir@/bacula-dir-sqlite; then echo ".dump" | ${BINDIR}/sqlite $1.db >$1.sql else - if test xmysql = x@DB_TYPE@ ; then + if test -x @sbindir@/bacula-dir-mysql; then if test $# -gt 2; then MYSQLPASSWORD=" --password=$3" else @@ -33,7 +33,7 @@ fi ${BINDIR}/mysqldump -u $2$MYSQLPASSWORD$MYSQLHOST -f --opt $1 >$1.sql else - if test xpostgresql = x@DB_TYPE@ ; then + if test -x @sbindir@/bacula-dir-postgresql; then if test $# -gt 2; then PGPASSWORD=$3 export PGPASSWORD