From 47f0beb9bf7a04c2ba8acc5983dd52e9f932a7ed Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Nov 2016 22:02:46 +0000 Subject: [PATCH] Create tor log --- src/freedombone-logging | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-logging b/src/freedombone-logging index 3b23dbac..f8ac22c8 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -83,6 +83,10 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then sed -i 's|logtarget.*|logtarget = /var/log/fail2ban.log|g' /etc/fail2ban/fail2ban.conf fi if [ -d /etc/tor ]; then + if [ ! -f /var/log/tor.log ]; then + touch /var/log/tor.log + chown root:debian-tor /var/log/tor.log + fi sed -i 's|#Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc sed -i 's|Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc fi