bundlewrap/bundles/transmission/items.py
Franziska Kunsmann 33b85ff0de
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/transmission: add bundle, add to home.downloadhelper
2021-01-08 17:00:08 +01:00

21 lines
529 B
Python

from bundlewrap.metadata import metadata_to_json
# transmission overwrites this on a restart. As of 2021-01 there's no
# way of disabling that.
files = {
'/etc/transmission-daemon/settings.json': {
'content': metadata_to_json(node.metadata['transmission']['config']),
'mode': '0444',
'triggers': {
'svc_systemd:transmission-daemon:reload',
},
},
}
svc_systemd = {
'transmission-daemon': {
'needs': {
'pkg_apt:transmission-daemon',
},
},
}