Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 4317bfc31cadca080692ce69bb6d2f87 > files > 2

bacula-2.2.4-2mdv2008.0.src.rpm

--- 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