mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	The consumer hook shouldn't contain the passphrase. That was a bad idea
This commit is contained in:
		| @@ -64,8 +64,6 @@ What Can This Script Do? | |||||||
| It's your script, so you're only limited by your imagination and the laws of | It's your script, so you're only limited by your imagination and the laws of | ||||||
| physics.  However, the following values are passed to the script in order: | physics.  However, the following values are passed to the script in order: | ||||||
|  |  | ||||||
| * The value of ``PAPERLESS_PASSPHRASE``, which is used to encrypt your |  | ||||||
|   documents |  | ||||||
| * Document id | * Document id | ||||||
| * Generated file name | * Generated file name | ||||||
| * Source path | * Source path | ||||||
|   | |||||||
| @@ -1,14 +1,13 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
|  |  | ||||||
| PASSPHRASE=${1} | DOCUMENT_ID=${1} | ||||||
| DOCUMENT_ID=${2} | DOCUMENT_FILE_NAME=${2} | ||||||
| DOCUMENT_FILE_NAME=${3} | DOCUMENT_SOURCE_PATH=${3} | ||||||
| DOCUMENT_SOURCE_PATH=${4} | DOCUMENT_THUMBNAIL_PATH=${4} | ||||||
| DOCUMENT_THUMBNAIL_PATH=${5} | DOCUMENT_DOWNLOAD_URL=${5} | ||||||
| DOCUMENT_DOWNLOAD_URL=${6} | DOCUMENT_THUMBNAIL_URL=${6} | ||||||
| DOCUMENT_THUMBNAIL_URL=${7} | DOCUMENT_CORRESPONDENT=${7} | ||||||
| DOCUMENT_CORRESPONDENT=${8} | DOCUMENT_TAGS=${8} | ||||||
| DOCUMENT_TAGS=${9} |  | ||||||
|  |  | ||||||
| echo " | echo " | ||||||
|  |  | ||||||
|   | |||||||
| @@ -64,7 +64,6 @@ def run_external_script(sender, document, **kwargs): | |||||||
|  |  | ||||||
|     Popen(( |     Popen(( | ||||||
|         settings.POST_CONSUME_SCRIPT, |         settings.POST_CONSUME_SCRIPT, | ||||||
|         settings.PASSPHRASE, |  | ||||||
|         str(document.id), |         str(document.id), | ||||||
|         document.file_name, |         document.file_name, | ||||||
|         document.source_path, |         document.source_path, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn