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