git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7224
91ce42f0-d328-0410-95d8-
f526ca767f89
# Create the sed file for configuring everything
#
cwd=`pwd`
-. ${cwd}/config
+. ${cwd}/scripts/functions
mkdir -p ${cwd}/bin
mkdir -p ${cwd}/tmp
out="${cwd}/tmp/sed_tmp"
#!/bin/sh
#
cwd=`pwd`
-. ${cwd}/config
+. ${cwd}/scripts/functions
mkdir -p ${cwd}/bin
out="${cwd}/tmp/sed_tmp"
db_password=${db_password:-""}
CLIENT=${HOST}-fd
+
+if [ x$USE_VTAPE = xyes ]; then
+ mkdir -p $cwd/working/ach
+ SLOT1=1
+ SLOT2=2
+ TAPE_DRIVE=$cwd/working/ach/drive1
+ TAPE_DRIVE1=$cwd/working/ach/drive1
+ AUTOCHANGER=$cwd/working/ach/config
+ AUTOCHANGER_SCRIPT=disk-changer
+ DRIVE1=0
+ DRIVE2=1
+ cat > AUTOCHANGER <<EOF
+maxdrive=2
+maxslot=10
+EOF
+fi
+
AUTOCHANGER_SCRIPT=${AUTOCHANGER_SCRIPT:-mtx-changer}