bundles/scansnap: set proper permissions for /srv/scansnap
This commit is contained in:
parent
c79b3f77c2
commit
c0ff320281
1 changed files with 12 additions and 0 deletions
|
@ -2,8 +2,17 @@ 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 = {
|
||||||
'/etc/scanbd/scanbd.conf': {
|
'/etc/scanbd/scanbd.conf': {
|
||||||
'triggers': {
|
'triggers': {
|
||||||
|
@ -12,6 +21,9 @@ files = {
|
||||||
},
|
},
|
||||||
'/etc/scanbd/scripts/scan.sh': {
|
'/etc/scanbd/scripts/scan.sh': {
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
|
'needs': {
|
||||||
|
'directory:/srv/scansnap',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue