소스 검색

added ip insert in second location

Daniel Gibbs 8 년 전
부모
커밋
660a772dad
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      tests/tests_jc2server.sh

+ 10 - 0
tests/tests_jc2server.sh

@@ -744,6 +744,16 @@ fn_setstatus
 (command_monitor.sh)
 fn_test_result_fail
 
+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|grep eth0|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0)
+sed -i "/BindIP/c\BindIP                      = \"${travisip}\"," "${serverfiles}/config.lua"
+echo "IP: ${travisip}"
+
 echo ""
 echo "5.4 - monitor - gsquery.py failure"
 echo "================================="