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

trove user can handle onion addresses

parent e1e9e5b4
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
#
# Freedom in the Cloud
#
# Host git repos which the project depends on
# Mirror git repos which the project depends on
#
# License
# =======
......@@ -119,6 +119,18 @@ function create_trove_user {
fi
}
function enable_trove_via_onion {
if ! grep -q 'Host *.onion' /home/trove/.ssh/config; then
if [ ! -d /home/trove/.ssh ]; then
mkdir /home/trove/.ssh
fi
echo 'Host *.onion' >> /home/trove/.ssh/config
echo 'ProxyCommand connect -R remote -5 -S 127.0.0.1:9050 %h %p' >> /home/trove/.ssh/config
chown $MY_USER_NAME:trove /home/trove/.ssh
chown $MY_USER_NAME:trove /home/trove/.ssh/config
fi
}
function update_repos_from_friend {
if [ ! $FRIENDS_TROVE_SERVER ]; then
return
......@@ -215,6 +227,7 @@ shift
done
create_trove_user
enable_trove_via_onion
update_repos_from_friend
sync_trove_repos
......
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