Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Try using add_attribute perl function to add attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Aug 6, 2015
1 parent 4669564 commit 6f99dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/fileregexp-test
Expand Up @@ -16,10 +16,11 @@ scripts/copy-confs
#
outf="${tmp}/sed_tmp"
echo "s% Schedule =%# Schedule =%g" >${outf}
echo "s%^Client {%Client {\n File Retention = 2 #%" >> ${outf}
cp ${scripts}/bareos-dir.conf ${tmp}/1
sed -f ${outf} ${tmp}/1 >${scripts}/bareos-dir.conf

$bperl -e "add_attribute('${scripts}/bareos-dir.conf', 'File Retention', '2', 'Client')"

change_jobname BackupClient1 $JobName
start_test

Expand Down

0 comments on commit 6f99dca

Please sign in to comment.