directories = {
    '/etc/scanbd/scripts': {
        'purge': True,
    },
    '/srv/scansnap': {
        'owner': 'nobody',
        'group': 'nogroup',
    },
}

files = {
    '/etc/scanbd/scanbd.conf': {
        'triggers': {
            'svc_systemd:scanbd:restart',
        },
    },
    '/etc/scanbd/scripts/ocr.sh': {
        'mode': '0755',
        'needs': {
            'directory:/srv/scansnap',
        },
    },
    '/etc/scanbd/scripts/scan.sh': {
        'mode': '0755',
        'needs': {
            'directory:/srv/scansnap',
            'file:/etc/scanbd/scripts/ocr.sh',
        },
    },
}

svc_systemd = {
    'scanbd': {
        'needs': {
            'file:/etc/scanbd/scanbd.conf',
            'pkg_apt:scanbd',
        },
    },
}
