Tor logging
This commit is contained in:
parent
6e2668ab1c
commit
7c7bb6a28c
|
@ -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
|
sed -i 's|logtarget.*|logtarget = /var/log/fail2ban.log|g' /etc/fail2ban/fail2ban.conf
|
||||||
fi
|
fi
|
||||||
if [ -d /etc/tor ]; then
|
if [ -d /etc/tor ]; then
|
||||||
if [ ! -f /var/log/tor.log ]; then
|
if [ ! -f /var/log/tor/notices.log ]; then
|
||||||
touch /var/log/tor.log
|
touch /var/log/tor/notices.log
|
||||||
chown debian-tor:debian-tor /var/log/tor.log
|
chown debian-tor:debian-tor /var/log/tor/notices.log
|
||||||
fi
|
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/notices.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
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/mumble-server.ini ]; then
|
if [ -f /etc/mumble-server.ini ]; then
|
||||||
sed -i 's|logfile=.*|logfile=/var/log/mumble-server.log|g' /etc/mumble-server.ini
|
sed -i 's|logfile=.*|logfile=/var/log/mumble-server.log|g' /etc/mumble-server.ini
|
||||||
|
|
Loading…
Reference in New Issue