2021-04-21 15:58:16 +00:00
|
|
|
directories = {
|
|
|
|
'/etc/scanbd/scripts': {
|
|
|
|
'purge': True,
|
|
|
|
},
|
2021-04-21 16:25:37 +00:00
|
|
|
'/srv/scansnap': {
|
|
|
|
'owner': 'nobody',
|
|
|
|
'group': 'nogroup',
|
|
|
|
},
|
2021-04-21 15:58:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
files = {
|
|
|
|
'/etc/scanbd/scanbd.conf': {
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:scanbd:restart',
|
|
|
|
},
|
|
|
|
},
|
2021-05-24 08:24:01 +00:00
|
|
|
'/etc/scanbd/scripts/ocr.sh': {
|
|
|
|
'mode': '0755',
|
|
|
|
'needs': {
|
|
|
|
'directory:/srv/scansnap',
|
|
|
|
},
|
|
|
|
},
|
2021-04-21 15:58:16 +00:00
|
|
|
'/etc/scanbd/scripts/scan.sh': {
|
|
|
|
'mode': '0755',
|
2021-04-21 16:25:37 +00:00
|
|
|
'needs': {
|
|
|
|
'directory:/srv/scansnap',
|
2021-05-24 08:24:01 +00:00
|
|
|
'file:/etc/scanbd/scripts/ocr.sh',
|
2021-04-21 16:25:37 +00:00
|
|
|
},
|
2021-04-21 15:58:16 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd = {
|
|
|
|
'scanbd': {
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/scanbd/scanbd.conf',
|
|
|
|
'pkg_apt:scanbd',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|