mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-29 12:09:37 +00:00
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:
parent
1e8a39e690
commit
8267c1156b
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user