Restart tor on migration failure
This commit is contained in:
parent
5b5050a708
commit
f56f58e422
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue