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()
|
||||
|
||||
+2
-1
@@ -263,7 +263,8 @@ def _should_show_install_view(request, package_names):
|
||||
return False
|
||||
else:
|
||||
messages.error(request, _('Error installing packages: {details}')
|
||||
.format(details=exception.error_string))
|
||||
.format(details=getattr(exception, 'error_string',
|
||||
str(exception))))
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user