From 7c7bb6a28cca447bda86b317b0b6f54a07f089a4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Jun 2017 19:51:18 +0100 Subject: [PATCH] Tor logging --- src/freedombone-logging | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-logging b/src/freedombone-logging index 519a7cbc..e3e3ea29 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -89,12 +89,12 @@ 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 debian-tor:debian-tor /var/log/tor.log + if [ ! -f /var/log/tor/notices.log ]; then + touch /var/log/tor/notices.log + chown debian-tor:debian-tor /var/log/tor/notices.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 + sed -i 's|#Log notice file.*|Log notice file /var/log/tor/notices.log|g' /etc/tor/torrc + sed -i 's|Log notice file.*|Log notice file /var/log/tor/notices.log|g' /etc/tor/torrc fi if [ -f /etc/mumble-server.ini ]; then sed -i 's|logfile=.*|logfile=/var/log/mumble-server.log|g' /etc/mumble-server.ini