tor: Move Tor setup from freedombox-setup

We are still overwriting the entire configuration file instead of
modifying it.
This commit is contained in:
Sunil Mohan Adapa committed 2015-08-18 21:25:01 +05:30
1 parent b4c487f520
commit ee521e098f
2 files changed
+38 -1

No files matched your search

+6 -1
View File
@@ -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()