]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/copy-2drive-confs
Updates
[bacula/bacula] / regress / scripts / copy-2drive-confs
index 5877cea6e371dbc7cc470106e3a4e4b634bfd22d..0388c4c1752c7a0ce5450f0c47ac8bf3403b3c0c 100755 (executable)
@@ -3,4 +3,13 @@
 /bin/cp -f scripts/bacula-sd-2drive.conf bin/bacula-sd.conf
 /bin/cp -f scripts/test-bacula-fd.conf bin/bacula-fd.conf
 /bin/cp -f scripts/test-console.conf bin/bconsole.conf
-touch bin/tape_options
+outf="tmp/sed_tmp"
+echo "s%# Autochanger = yes%  Autochanger = yes%g" >${outf}
+cp bin/bacula-dir.conf tmp/1
+sed -f ${outf} tmp/1 >bin/bacula-dir.conf
+
+# get proper SD tape definitions
+cp -f scripts/linux_tape_options bin/tape_options
+if test x`uname` = xFreeBSD ; then
+   cp -f scripts/freebsd_tape_options bin/tape_options
+fi