mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
tor: Move Tor setup from freedombox-setup
We are still overwriting the entire configuration file instead of modifying it.
This commit is contained in:
1 parent
b4c487f520
commit
ee521e098f
2 files changed
+38
-1
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