tor log ownership

This commit is contained in:
Bob Mottram 2016-11-20 22:31:53 +00:00
parent 1b72fc896d
commit 4646670138
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
if [ -d /etc/tor ]; then
if [ ! -f /var/log/tor.log ]; then
touch /var/log/tor.log
chown root:debian-tor /var/log/tor.log
chown debian-tor:debian-tor /var/log/tor.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