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

Commit

Permalink
Quick and dirty fix for test.
Browse files Browse the repository at this point in the history
As we don't have the portnumber in the configs when its the default
compiled in number the source-addr-test failed as the sed script
failed to replace the correct data.
  • Loading branch information
Marco van Wieringen committed Feb 6, 2013
1 parent 9812ef3 commit ba265e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/source-addr-test
Expand Up @@ -39,13 +39,13 @@ if [ "$IP" = '' ]; then
fi

outf="tmp/sed_tmp"
echo "s/DIRport/DirSourceAddress=$IP; DIRport/g" > $outf
echo "s/QueryFile/DirSourceAddress=$IP; QueryFile/g" > $outf
echo "s/Address =/Address = 127.0.0.1 #/g" >> $outf
cp $scripts/bareos-dir.conf $tmp/1
sed -f ${outf} ${cwd}/tmp/1 > $scripts/bareos-dir.conf

# Set source address on the FD as well
echo "s/FDPort/FDSourceAddress=$IP; FDPort/g" >$outf
echo "s/Maximum Concurrent Jobs/FDSourceAddress=$IP; Maximum Concurrent Jobs/g" >$outf
cp $scripts/bareos-fd.conf $tmp/2
sed -f ${outf} ${cwd}/tmp/2 > $scripts/bareos-fd.conf

Expand Down

0 comments on commit ba265e3

Please sign in to comment.