|
|
|
|
83
|
sed -i 's|logtarget.*|logtarget = /var/log/fail2ban.log|g' /etc/fail2ban/fail2ban.conf
|
83
|
sed -i 's|logtarget.*|logtarget = /var/log/fail2ban.log|g' /etc/fail2ban/fail2ban.conf
|
84
|
fi
|
84
|
fi
|
85
|
if [ -d /etc/tor ]; then
|
85
|
if [ -d /etc/tor ]; then
|
|
|
86
|
+ if [ ! -f /var/log/tor.log ]; then
|
|
|
87
|
+ touch /var/log/tor.log
|
|
|
88
|
+ chown root:debian-tor /var/log/tor.log
|
|
|
89
|
+ fi
|
86
|
sed -i 's|#Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc
|
90
|
sed -i 's|#Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc
|
87
|
sed -i 's|Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc
|
91
|
sed -i 's|Log notice file.*|Log notice file /var/log/tor.log|g' /etc/tor/torrc
|
88
|
fi
|
92
|
fi
|