finish git-annex enable-tor

Make it stash the address away for git-annex p2p to use later, rather
than outputting it. And, look up the UUID itself.
This commit is contained in:
Joey Hess 2016-11-29 17:30:27 -04:00
parent 398345cb26
commit 38425fdc39
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
6 changed files with 106 additions and 26 deletions

View file

@ -4,20 +4,18 @@ git-annex enable-tor - enable tor hidden service
# SYNOPSIS
git annex enable-tor userid uuid
sudo git annex enable-tor $(id -u)
# DESCRIPTION
This plumbing-level command enables a tor hidden service for git-annex,
using the specified repository uuid and userid.
This command enables a tor hidden service for git-annex.
This command has to be run by root, since it modifies `/etc/tor/torrc`.
It has to be run by root, since it modifies `/etc/tor/torrc`.
Pass it your user id number, as output by `id -u`
After this command is run, `git annex remotedaemon` can be run to serve the
tor hidden service.
Use the `git-annex p2p --gen-address` command to give other users access
to your repository via the tor hidden service.
tor hidden service, and then `git-annex p2p --gen-address` can be run to
give other users access to your repository via the tor hidden service.
# SEE ALSO