From f7283a0af5ef0169127871b017a83927a0e0bbfb Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sun, 19 Oct 2014 17:23:50 +0100
Subject: [PATCH] Use username

---
 install-freedombone.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/install-freedombone.sh b/install-freedombone.sh
index 333d2a5f9..a1be81933 100755
--- a/install-freedombone.sh
+++ b/install-freedombone.sh
@@ -4973,9 +4973,8 @@ function route_outgoing_traffic_through_tor {
   # Destinations you don't want routed through Tor
   _non_tor="192.168.1.0/24 192.168.0.0/24"
 
-  # The UID that Tor runs as (varies from system to system)
-  # TODO this changes every time tor is started, so won't work
-  _tor_uid=$(ps -ef | grep /usr/bin/tor | grep -v grep | awk -F ' ' '{print $2}')
+  # The user that Tor runs as
+  _tor_uid="debian-+"
 
   # Tor's TransPort
   _trans_port="9040"
-- 
GitLab