add pre-consume hook

a script hook can be defined in /etc/paperless.conf as
PAPERLESS_PRE_CONSUME_SCRIPT
This commit is contained in:
Lenz Weber
2016-06-23 21:57:17 +02:00
parent 7b88cea07b
commit c728b1dd21
3 changed files with 17 additions and 3 deletions

View File

@@ -230,6 +230,7 @@ SHARED_SECRET = os.getenv("PAPERLESS_SHARED_SECRET", "")
# Trigger a script after every successful document consumption?
POST_CONSUME_SCRIPT = os.getenv("PAPERLESS_POST_CONSUME_SCRIPT")
PRE_CONSUME_SCRIPT = os.getenv("PAPERLESS_PRE_CONSUME_SCRIPT")
#
# TODO: Remove after 0.2