diff --git a/src/freedombone-logging b/src/freedombone-logging index 178496c0..bb32adce 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -179,9 +179,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then else turn_logging_off - if [ -d /etc/tor ]; then - echo 'Log notice file /dev/null' > /etc/torrc.d/logging - rm /var/log/tor/* + if [ -d /etc/torrc.d ]; then + echo 'Log notice file /var/log/tor/notices.log' > /etc/torrc.d/logging fi if [ -d /var/log/radicale ]; then $REMOVE_FILES_COMMAND /var/log/radicale/*