From f56f58e4220c0488f1992889e86dc7255a6d6eac Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 20 Apr 2018 13:16:58 +0100 Subject: [PATCH] Restart tor on migration failure --- src/freedombone-utils-onion | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index 6bdb4cff..9882a1d9 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -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