[PATCH] tor: Fix tor permissions if presant via update.sh

Erik Kapfer ummeegge at ipfire.org
Mon Jun 10 12:36:52 BST 2019


Signed-off-by: Erik Kapfer <ummeegge at ipfire.org>
---
 config/rootfiles/core/133/update.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/config/rootfiles/core/133/update.sh b/config/rootfiles/core/133/update.sh
index a05ad0741..3ecb5651b 100644
--- a/config/rootfiles/core/133/update.sh
+++ b/config/rootfiles/core/133/update.sh
@@ -71,6 +71,11 @@ sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
 /etc/init.d/squid start
 /etc/init.d/collectd restart
 
+# Set new permissions for tor
+if [ -d "/var/lib/tor" ]; then
+    chown -R tor:tor /var/lib/tor
+fi
+
 # Finish
 /etc/init.d/fireinfo start
 sendprofile
-- 
2.12.2



More information about the Development mailing list