Ensure that private key is shredded when removing an onion service

This commit is contained in:
Bob Mottram 2016-09-30 20:48:01 +01:00
parent 52e0e2ddb9
commit 1de7d59b56
1 changed files with 1 additions and 0 deletions

View File

@ -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