mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 06:18:02 +00:00
b1b0ec8709
This is needed for Docker >=1.9 because the bridge IP is not necessarily 172.17.42.1 anymore. (See https://github.com/docker/docker/issues/17305 for reference.) refs #357
7 lines
222 B
Bash
Executable File
7 lines
222 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
BRIDGE_IP=$(ip ro get 8.8.8.8 | grep -oP '(?<=via )([\d\.]+)')
|
|
|
|
exec /twister-core/twisterd -rpcuser=user -rpcpassword=pwd -rpcallowip=${BRIDGE_IP} -htmldir=/twister-html -printtoconsole -port=28333 $*
|