bundlewrap/bundles/wol-sleeper/items.py
2022-02-12 19:50:36 +01:00

9 lines
267 B
Python

waker_node = repo.get_node(node.metadata.get('wol-sleeper/waker'))
if not waker_node.has_bundle('wol-waker'):
raise Exception(f'waker node {waker_node.name} does not have bundle wol-waker')
files = {
'/opt/suspend_if_idle': {
'mode': '550',
},
}