bundles/samba: cannot have time machine and 'guest ok' shares on the same machine
This commit is contained in:
parent
fd1ad352d0
commit
e1548ff61e
2 changed files with 3 additions and 18 deletions
|
@ -66,6 +66,9 @@ for user, uconfig in node.metadata.get('users', {}).items():
|
|||
if timemachine_shares:
|
||||
assert node.has_bundle('avahi-daemon'), f'{node.name}: samba needs avahi-daemon to publish time machine shares'
|
||||
|
||||
for share, share_config in node.metadata.get('samba/shares', {}).items():
|
||||
assert not share_config.get('guest_ok', True), f'{node.name} samba {share}: cannot have time machine shares and "guest ok" shares on the same machine'
|
||||
|
||||
files['/etc/avahi/services/timemachine.service'] = {
|
||||
'content_type': 'mako',
|
||||
'context': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue