mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
tor: Add torsocks as required package, needed for diagnostics.
Display error for diagnostic if command is missing.
This commit is contained in:
parent
dee7474b5e
commit
9a25e6b21d
@ -268,6 +268,8 @@ def diagnose_url(url, kind=None, env=None, extra_options=None, wrapper=None,
|
||||
# Authorization failed is a success
|
||||
if exception.returncode == 6:
|
||||
result = 'passed'
|
||||
except FileNotFoundError:
|
||||
result = 'error: missing command'
|
||||
|
||||
if kind:
|
||||
return [_('Access URL {url} on tcp{kind}')
|
||||
|
||||
@ -55,7 +55,7 @@ def on_install():
|
||||
actions.superuser_run('tor', ['setup'])
|
||||
|
||||
|
||||
@package.required(['tor', 'obfsproxy'], on_install=on_install)
|
||||
@package.required(['tor', 'obfsproxy', 'torsocks'], on_install=on_install)
|
||||
def index(request):
|
||||
"""Service the index page"""
|
||||
status = get_status()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user