Tor things

This commit is contained in:
Bob Mottram 2017-06-01 15:15:05 +01:00
parent 1163ffd146
commit d1be62d225
1 changed files with 7 additions and 4 deletions

View File

@ -157,10 +157,12 @@ function configure_email_onion {
return
fi
echo 'HiddenServiceDir /var/lib/tor/hidden_service_email/' >> /etc/tor/torrc
echo 'HiddenServicePort 25 127.0.0.1:25' >> /etc/tor/torrc
echo 'HiddenServicePort 587 127.0.0.1:587' >> /etc/tor/torrc
echo 'HiddenServicePort 465 127.0.0.1:465' >> /etc/tor/torrc
if ! grep -q "hidden_service_email" /etc/tor/torrc; then
echo 'HiddenServiceDir /var/lib/tor/hidden_service_email/' >> /etc/tor/torrc
echo 'HiddenServicePort 25 127.0.0.1:25' >> /etc/tor/torrc
echo 'HiddenServicePort 587 127.0.0.1:587' >> /etc/tor/torrc
echo 'HiddenServicePort 465 127.0.0.1:465' >> /etc/tor/torrc
fi
function_check onion_update
onion_update
@ -170,6 +172,7 @@ function configure_email_onion {
if [[ $(onion_service_exists email) == "0" ]]; then
echo $"email onion site hostname not found"
systemctl restart tor
exit 782352
fi