mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Merge remote-tracking branch 'sunil/tor-setup'
This commit is contained in:
commit
ea64fa1c7a
3 files changed
+44
-2
No files matched your search
@@ -50,7 +50,12 @@ def init():
|
||||
'tor:index', 100)
|
||||
|
||||
|
||||
@package.required(['tor'])
|
||||
def on_install():
|
||||
"""Setup Tor configuration as soon as it is installed."""
|
||||
actions.superuser_run('tor', ['setup'])
|
||||
|
||||
|
||||
@package.required(['tor', 'obfsproxy'], on_install=on_install)
|
||||
def index(request):
|
||||
"""Service the index page"""
|
||||
status = get_status()
|
||||
|
||||
Reference in new issue
Block a user