Add onion domain to hosts

This commit is contained in:
Bob Mottram 2018-04-05 12:33:18 +01:00
parent 0241abd55b
commit 89e2c97a28
1 changed files with 3 additions and 0 deletions

View File

@ -134,8 +134,11 @@ function final_set_onion_hostname {
exit 368365 exit 368365
fi fi
onion_domain=$(cat /var/lib/tor/hidden_service_email/hostname) onion_domain=$(cat /var/lib/tor/hidden_service_email/hostname)
echo "$onion_domain" > /etc/hostname echo "$onion_domain" > /etc/hostname
hostname "$onion_domain" hostname "$onion_domain"
echo "127.0.1.1 $onion_domain" >> /etc/hosts
} }
function setup_final { function setup_final {