mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
tor: Update setup to use plinth instance
This commit is contained in:
parent
9f2521ce76
commit
49106fe8ee
@ -36,17 +36,17 @@ APT_TOR_PREFIX = 'tor+'
|
|||||||
|
|
||||||
def is_enabled():
|
def is_enabled():
|
||||||
"""Return whether the module is enabled."""
|
"""Return whether the module is enabled."""
|
||||||
return action_utils.service_is_enabled('tor')
|
return action_utils.service_is_enabled('tor@plinth')
|
||||||
|
|
||||||
|
|
||||||
def is_running():
|
def is_running():
|
||||||
"""Return whether the service is running."""
|
"""Return whether the service is running."""
|
||||||
return action_utils.service_is_running('tor')
|
return action_utils.service_is_running('tor@plinth')
|
||||||
|
|
||||||
|
|
||||||
def get_status():
|
def get_status():
|
||||||
"""Return current Tor status."""
|
"""Return current Tor status."""
|
||||||
output = actions.superuser_run('tor', ['get-status'])
|
output = actions.superuser_run('tor@plinth', ['get-status'])
|
||||||
status = json.loads(output)
|
status = json.loads(output)
|
||||||
|
|
||||||
hs_info = status['hidden_service']
|
hs_info = status['hidden_service']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user