From ba7b925a9fca9de0731275198a2f0be9adebcff5 Mon Sep 17 00:00:00 2001 From: Fabio Napoleoni Date: Wed, 10 Feb 2016 17:12:49 +0100 Subject: [PATCH] Using a different volume name for otp test, should allow tests to run --- tests/otp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/otp.sh b/tests/otp.sh index 80b54ec..9b8a031 100755 --- a/tests/otp.sh +++ b/tests/otp.sh @@ -1,6 +1,6 @@ #!/bin/bash set -ex -OVPN_DATA=basic-data +OVPN_DATA=basic-data-otp CLIENT=travis-client IMG=kylemanna/openvpn OTP_USER=otp @@ -43,8 +43,8 @@ docker run --volumes-from $OVPN_DATA --rm $IMG ovpn_getclient $CLIENT | sed 's/a # # Fire up the server # -sudo iptables -N DOCKER -sudo iptables -I FORWARD -j DOCKER +sudo iptables -N DOCKER || echo 'Firewall already configured' +sudo iptables -I FORWARD -j DOCKER || echo 'Forward already configured' # run in shell bg to get logs docker run --name "ovpn-test" --volumes-from $OVPN_DATA --rm -p 1194:1194/udp --privileged $IMG &