Skip to content

Commit

Permalink
removed hard coded hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 25, 2017
1 parent 4c80a09 commit 877cd61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clam/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

TESTDIR=`dirname $0`
cd $TESTDIR
HOSTNAME=$(hostname)


echo "Checking installation..." >&2
Expand Down Expand Up @@ -105,7 +106,7 @@ clamservice -d clam.config.forwardauthtest 2> forwardauthtest.server.log &
sleep 5

#simple curl test:
curl -f -H "REMOTE_USER: test" http://mhysa:8080/
curl -f -H "REMOTE_USER: test" http://$HOSTNAME:8080/
if [ $? -ne 0 ]; then
echo "ERROR: Forwarded authentication failure" >&2
fi
Expand Down

0 comments on commit 877cd61

Please sign in to comment.