Commit 25ace6f7 authored by anonym's avatar anonym

Fix potential race condition.

I think it is possible that Tor could be fast enough to create the
hidden hidden-related before we start `inotify-wait` and end up
waiting forever.
parent 2bb8e282
......@@ -45,7 +45,7 @@ grep --quiet "^HiddenServicePort 64738$" /etc/tor/torrc || echo "HiddenServicePo
systemctl start mumble-server
systemctl reload tor@default
inotifywait -e create ${ONION}
[ -e "${ONION}/hostname" ] || inotifywait -e create ${ONION}
HOSTNAME=$(cat ${ONION}/hostname)
# Allow local connections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment