#!/bin/sh
-/bin/cp -f ${rscripts}/new-test-bacula-dir.conf ${bin}/bacula-dir.conf
-/bin/cp -f ${rscripts}/test-bacula-sd.conf ${bin}/bacula-sd.conf
-/bin/cp -f ${rscripts}/test-bacula-fd.conf ${bin}/bacula-fd.conf
-/bin/cp -f ${rscripts}/test-console.conf ${bin}/bconsole.conf
+/bin/cp -f ${rscripts}/new-test-bacula-dir.conf ${conf}/bacula-dir.conf
+/bin/cp -f ${rscripts}/test-bacula-sd.conf ${conf}/bacula-sd.conf
+/bin/cp -f ${rscripts}/test-bacula-fd.conf ${conf}/bacula-fd.conf
+/bin/cp -f ${rscripts}/test-console.conf ${conf}/bconsole.conf
${rscripts}/set_tape_options
cat ${tmp}/bconcmds | ${bin}/bconsole -c ${conf}/bconsole.conf
return $?
else
- ${bin}/bacula start >/dev/null 2>&1
+ ${scripts}/bacula start >/dev/null 2>&1
cat ${tmp}/bconcmds | ${bin}/bconsole -c ${conf}/bconsole.conf >/dev/null 2>&1
return $?
fi
stop_bacula()
{
if test "$debug" -eq 1 ; then
- ${bin}/bacula stop
+ ${scripts}/bacula stop
else
- ${bin}/bacula stop 2>&1 >/dev/null
+ ${scripts}/bacula stop 2>&1 >/dev/null
fi
}
bin=${bin:-"$cwd/bin"}
# Bacula scripts
-scripts=${scripts:-"$bin"}
+scripts=${scripts:-"$cwd/bin"}
# Bacula conf files
-conf=${conf:-"$bin"}
+conf=${conf:-"$cwd/bin"}
# Regress scripts
rscripts=${rscripts:-"$cwd/scripts"}
#!/bin/sh
. scripts/functions
# get proper SD tape definitions
-cp -f ${rscripts}/linux_tape_options ${bin}/tape_options
+cp -f ${rscripts}/linux_tape_options ${conf}/tape_options
if test x`uname` = xFreeBSD ; then
- cp -f ${rscripts}/freebsd_tape_options ${bin}/tape_options
+ cp -f ${rscripts}/freebsd_tape_options ${conf}/tape_options
fi
if test x${USE_VTAPE} = xyes ; then
- echo " Device Type = vtape" >>${bin}/tape_options
+ echo " Device Type = vtape" >>${conf}/tape_options
fi