From 3328c0a9801901431cd15de5e95e7c2217e3e729 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:12:59 +0100 Subject: [PATCH] moved ip insert next to monitor --- tests/tests_jc2server.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 55896ed93..9274a1f97 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -528,15 +528,6 @@ 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}/config.lua" > "${serverfiles}/config.lua" - echo "" echo "3.1 - start" echo "=================================" @@ -708,6 +699,15 @@ fn_setstatus (command_validate.sh) 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}/config.lua" > "${serverfiles}/config.lua" + echo "" echo "5.1 - monitor - online" echo "================================="