$bperl -e 'add_attribute("$conf/bacula-dir.conf", "SD Calls Client", "yes", "Client")'
variant_name="${variant_name} SDcall"
fi
- if [ x$FORCE_SDENC = xyes ]; then
- SDENC_COMMAND="\"$bin/key-manager-cmd.sh\""
+ if [ x$FORCE_VOLENC = xyes ]; then
+ ENC_COMMAND="\"$bin/key-manager-cmd.sh\""
cat > $bin/key-manager-cmd.sh <<EOF
# --key-dir "$working/keydir"
# --log "$working/key-manager.log"
exec $bin/key-manager.py getkey \$VERBOSE \$OPTION --cipher AES_128_XTS
EOF
chmod a+x $bin/key-manager-cmd.sh
- $bperl -e "add_attribute('$conf/bacula-sd.conf', 'EncryptionCommand', '$SDENC_COMMAND', 'Storage')"
- $bperl -e "add_attribute('$conf/bacula-sd.conf', 'BlockEncryption', 'enable', 'Device')"
- variant_name="${variant_name} SDEnc"
+ $bperl -e "add_attribute('$conf/bacula-sd.conf', 'EncryptionCommand', '$ENC_COMMAND', 'Storage')"
+ $bperl -e "add_attribute('$conf/bacula-sd.conf', 'VolumeEncryption', 'enable', 'Device')"
+ variant_name="${variant_name} VolEnc"
# $bperl -e "add_attribute('$conf/bacula-dir.conf', 'SpoolData', 'no', 'Job')"