From 49106fe8ee655cdafce3caceca1857f423dac1f0 Mon Sep 17 00:00:00 2001 From: mridulnagpal Date: Sat, 10 Dec 2016 18:11:00 +0530 Subject: [PATCH] tor: Update setup to use plinth instance --- plinth/modules/tor/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/tor/utils.py b/plinth/modules/tor/utils.py index c21540272..73422769d 100644 --- a/plinth/modules/tor/utils.py +++ b/plinth/modules/tor/utils.py @@ -36,17 +36,17 @@ APT_TOR_PREFIX = 'tor+' def 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(): """Return whether the service is running.""" - return action_utils.service_is_running('tor') + return action_utils.service_is_running('tor@plinth') def get_status(): """Return current Tor status.""" - output = actions.superuser_run('tor', ['get-status']) + output = actions.superuser_run('tor@plinth', ['get-status']) status = json.loads(output) hs_info = status['hidden_service']