diff --git a/bundles/scansnap/items.py b/bundles/scansnap/items.py index 5275307..d4b55ea 100644 --- a/bundles/scansnap/items.py +++ b/bundles/scansnap/items.py @@ -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', + }, }, }