bundles/scansnap: set proper permissions for /srv/scansnap

This commit is contained in:
Franzi 2021-04-21 18:25:37 +02:00
parent c79b3f77c2
commit c0ff320281
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -2,6 +2,15 @@ directories = {
'/etc/scanbd/scripts': { '/etc/scanbd/scripts': {
'purge': True, 'purge': True,
}, },
'/srv/scansnap': {
'owner': 'nobody',
'group': 'nogroup',
},
}
if node.has_bundle('zfs'):
directories['/srv/scansnap']['needs'] = {
'bundle:zfs',
} }
files = { files = {
@ -12,6 +21,9 @@ files = {
}, },
'/etc/scanbd/scripts/scan.sh': { '/etc/scanbd/scripts/scan.sh': {
'mode': '0755', 'mode': '0755',
'needs': {
'directory:/srv/scansnap',
},
}, },
} }