X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fscripts%2Fcopy-2tape-confs;h=e23adc5c820a52872972cdc1956fa99d344f1e49;hb=7a31fe9348a77c27f05cabcd5d74ea775d474789;hp=d91c681b5a32783cc124ee6bebb311838f1f51a4;hpb=93d14d5c387b87e381eee5ea8f9272b7ca979f68;p=bacula%2Fbacula diff --git a/regress/scripts/copy-2tape-confs b/regress/scripts/copy-2tape-confs index d91c681b5a..e23adc5c82 100755 --- a/regress/scripts/copy-2tape-confs +++ b/regress/scripts/copy-2tape-confs @@ -3,4 +3,13 @@ /bin/cp -f scripts/bacula-sd-2tape.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