Skip to content
Snippets Groups Projects
Commit f56f58e4 authored by Bob Mottram's avatar Bob Mottram
Browse files

Restart tor on migration failure

parent 5b5050a7
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ function torrc_migrate {
grep "HiddenServiceDir\\|HiddenServiceVersion\\|HiddenServicePort" /etc/tor/torrc | grep -v "#HiddenServiceDir" >> $ONION_SERVICES_FILE
if ! grep "HiddenServiceVersion" $ONION_SERVICES_FILE; then
systemctl restart tor
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment