]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/copy-2disk-confs
ab2e60dca31e297849dcd43e9eb2d41380693b7b
[bacula/bacula] / regress / scripts / copy-2disk-confs
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 # Setup for using the Virtual Disk Changer (simulates tape changer)
9 #
10 cp -f scripts/bacula-dir-tape.conf ${conf}/bacula-dir.conf
11 cp -f scripts/bacula-sd-2disk.conf ${conf}/bacula-sd.conf
12 cp -f scripts/test-bacula-fd.conf ${conf}/bacula-fd.conf
13 cp -f scripts/test-console.conf ${conf}/bconsole.conf
14 cp -f scripts/test-console.conf ${conf}/bat.conf
15 outf="tmp/sed_tmp"
16 echo "s%# Autochanger = yes%  Autochanger = yes%g" >${outf}
17 cp ${conf}/bacula-dir.conf tmp/1
18 sed -f ${outf} tmp/1 >${conf}/bacula-dir.conf