From 5fa808deccb387c8c7538a112783f7d8c8dd37b4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 21:55:14 +0100 Subject: [PATCH] testing IP insert feature --- tests/tests_jc2server.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 6e70f0ef4..0f89cc22e 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -528,6 +528,14 @@ echo "Command: ./jc2server auto-install" (fn_autoinstall) fn_test_result_pass +echo "" +echo "Inserting IP address" +echo "=================================" +echo "Description:" +echo "Inserting Travis IP in to config." +echo "Allows monitor to work" +travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/serverfiles/config.lua" > "${serverfiles}/serverfiles/config.lua" echo "" echo "3.1 - start"