prepare_infra_script.sh 237 Bytes
Newer Older
1
2
3
4
5
6
7
8
PROVIDED_PORT_NAME=$variables_providedPortName

if [[ ! -z $PROVIDED_PORT_NAME ]]; then
    IP_ADDR=$(dig +short myip.opendns.com @resolver1.opendns.com)
    echo Public adress: $IP_ADDR

    echo "$IP_ADDR" > $PROVIDED_PORT_NAME"_ip"
fi