mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
transmission: Disable rpc whitelists on install
This commit is contained in:
parent
437ca5154d
commit
efac9cb59e
@ -38,6 +38,10 @@ TRANSMISSION_CONFIG = '/etc/transmission-daemon/settings.json'
|
||||
|
||||
def on_install():
|
||||
"""Enable transmission as soon as it is installed."""
|
||||
new_configuration = {'rpc-whitelist-enabled': False}
|
||||
actions.superuser_run('transmission', ['merge-configuration'],
|
||||
input=json.dumps(new_configuration).encode())
|
||||
|
||||
actions.superuser_run('transmission', ['enable'])
|
||||
transmission.service.notify_enabled(None, True)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user