mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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():
|
def on_install():
|
||||||
"""Enable transmission as soon as it is installed."""
|
"""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'])
|
actions.superuser_run('transmission', ['enable'])
|
||||||
transmission.service.notify_enabled(None, True)
|
transmission.service.notify_enabled(None, True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user