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

Ensure that private key is shredded when removing an onion service

parent 52e0e2dd
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ function remove_onion_service {
fi
fi
if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
shred -zu /var/lib/tor/hidden_service_${onion_service_name}/*
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
fi
systemctl restart tor
......
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