#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
-/bin/cp -f scripts/tls-bacula-dir.conf bin/bacula-dir.conf
-/bin/cp -f scripts/tls-bacula-sd.conf bin/bacula-sd.conf
-/bin/cp -f scripts/tls-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
-/bin/cp -f scripts/tls-CA.pem bin/tls-CA.pem
-/bin/cp -f scripts/tls-cert.pem bin/tls-cert.pem
+
+cp -f scripts/tls-bacula-dir.conf ${conf}/bacula-dir.conf
+cp -f scripts/tls-bacula-sd.conf ${conf}/bacula-sd.conf
+cp -f scripts/tls-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
+cp -f scripts/tls-CA.pem ${conf}/tls-CA.pem
+cp -f scripts/tls-cert.pem ${conf}/tls-cert.pem