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,8 +2,17 @@ directories = {
'/etc/scanbd/scripts': {
'purge': True,
},
'/srv/scansnap': {
'owner': 'nobody',
'group': 'nogroup',
},
}
if node.has_bundle('zfs'):
directories['/srv/scansnap']['needs'] = {
'bundle:zfs',
}
files = {
'/etc/scanbd/scanbd.conf': {
'triggers': {
@ -12,6 +21,9 @@ files = {
},
'/etc/scanbd/scripts/scan.sh': {
'mode': '0755',
'needs': {
'directory:/srv/scansnap',
},
},
}