i2p: Disable the daemon before editing configuration

- This is likely to yield better consistency as the daemon also edits the
  configuration files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2019-04-29 14:57:34 -07:00
parent 1e8a39e690
commit 8267c1156b
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -96,6 +96,7 @@ def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(managed_packages)
helper.call('post', disable)
# Add favorites to the configuration
for fav_name, fav_url in additional_favorites:
helper.call('post', actions.superuser_run, 'i2p', [
@ -112,7 +113,6 @@ def setup(helper, old_version=None):
'set-tunnel-property', '--name', tunnel, '--property', 'interface',
'--value', '0.0.0.0'
])
helper.call('post', disable)
helper.call('post', enable)
global service
if service is None: