Browse Source

Restart tor on migration failure

Bob Mottram 6 years ago
parent
commit
f56f58e422
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/freedombone-utils-onion

+ 1
- 0
src/freedombone-utils-onion View File

@@ -48,6 +48,7 @@ function torrc_migrate {
48 48
     grep "HiddenServiceDir\\|HiddenServiceVersion\\|HiddenServicePort" /etc/tor/torrc | grep -v "#HiddenServiceDir" >> $ONION_SERVICES_FILE
49 49
 
50 50
     if ! grep "HiddenServiceVersion" $ONION_SERVICES_FILE; then
51
+        systemctl restart tor
51 52
         return
52 53
     fi
53 54