]> git.sur5r.net Git - bacula/bacula/commitdiff
Use BUILD_DIR in default conf
authorKern Sibbald <kern@sibbald.com>
Thu, 16 Jul 2009 13:48:33 +0000 (13:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 16 Jul 2009 13:48:33 +0000 (13:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9027 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions
regress/scripts/setup

index aae48d2a016b6cf094778379bd07eb1ceb945b29..329403c9e067f61a9e0516e567cb2ed58f2d5802 100644 (file)
@@ -279,6 +279,17 @@ check_restore_diff()
    dstat=$?
 }
 
+check_restore_bin_diff()
+{
+   if test "$debug" -eq 1 ; then
+      diff -ur ${bin} ${tmp}/bacula-restores${bin}
+   else 
+      diff -ur ${bin} ${tmp}/bacula-restores${bin} 2>&1 >/dev/null
+   fi
+   dstat=$?
+}
+
+
 check_restore_tmp_build_diff()
 {
    if test "$debug" -eq 1 ; then
index 7ec51383471db9140abce7ec50ebd73819348263..6013db2fcaf0f81c24ecca55c6fa55e6563f18e3 100755 (executable)
@@ -25,11 +25,15 @@ rm -rf build bin
 # Copy new source
 echo "Copying source from ${BACULA_SOURCE}"
 cp -rp ${BACULA_SOURCE} build
-cd build
-rm -rf txt src/testprogs
-cd ..
-check_exit_code
 scripts/create_sed
+# In default bacula-dir.conf.in, change default file 
+# to backup to be build directory
+echo "s%File = @sbindir@%File = @BUILD_DIR@%g" >tmp/t$$
+sed -f tmp/t$$ build/src/dird/bacula-dir.conf.in >tmp/o$$
+cp tmp/o$$ build/src/dird/bacula-dir.conf.in
+rm -f tmp/t$$ tmp/o$$
+# remove unneeded directories
+rm -rf build/txt build/src/testprogs
 sed -f tmp/sed_tmp scripts/regress-config.in >scripts/regress-config
 chmod 755 scripts/regress-config
 cp scripts/regress-config build