torch-subscriber-docker/tor/tor.sh

5 lines
162 B
Bash
Raw Normal View History

2020-10-20 16:58:42 +00:00
#!/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