torch-subscriber-docker/tor/tor.sh

5 lines
162 B
Bash
Executable File

#!/bin/sh
IP_BROKER=$(nslookup broker | awk '/^Address: / { print $2 }' | tail -n1 | sed -e 's/[[:space:]]//g')
sed -i "s/broker/$IP_BROKER/g" /etc/tor/torrc
tor