]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/copy-2disk-drive-confs
Backport from Bacula Enterprise
[bacula/bacula] / regress / scripts / copy-2disk-drive-confs
index 6fb08807e9684d7c24d54a8a30dc0a64d4c0f871..8c2f59bdf1146cd50b0f20c229a49cd2b03652a8 100755 (executable)
@@ -1,10 +1,15 @@
 #!/bin/sh
-/bin/cp -f scripts/bacula-dir-tape.conf bin/bacula-dir.conf
-/bin/cp -f scripts/bacula-sd-2disk-drive.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
-/bin/cp -f scripts/test-console.conf bin/bat.conf
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
+cp -f scripts/bacula-dir-tape.conf ${conf}/bacula-dir.conf
+cp -f scripts/bacula-sd-2disk-drive.conf ${conf}/bacula-sd.conf
+cp -f scripts/test-bacula-fd.conf ${conf}/bacula-fd.conf
+cp -f scripts/test-console.conf ${conf}/bconsole.conf
+cp -f scripts/test-console.conf ${conf}/bat.conf
 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
+cp ${conf}/bacula-dir.conf tmp/1
+sed -f ${outf} tmp/1 >${conf}/bacula-dir.conf