Skip to content
Snippets Groups Projects
Commit 46466701 authored by Bob Mottram's avatar Bob Mottram
Browse files

tor log ownership

parent 1b72fc89
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment