mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Only require a passphrase if STORAGE_TYPE is not "unencrypted"
This commit is contained in:
		| @@ -11,8 +11,10 @@ if __name__ == "__main__": | |||||||
|     # The runserver and consumer need to have access to the passphrase, so it |     # The runserver and consumer need to have access to the passphrase, so it | ||||||
|     # must be entered at start time to keep it safe. |     # must be entered at start time to keep it safe. | ||||||
|     if "runserver" in sys.argv or "document_consumer" in sys.argv: |     if "runserver" in sys.argv or "document_consumer" in sys.argv: | ||||||
|         if(settings.ENABLE_ENCRYPTION and not settings.PASSPHRASE): |         if not settings.STORAGE_TYPE == "unencrypted": | ||||||
|             settings.PASSPHRASE = input( |             if not settings.PASSPHRASE: | ||||||
|                 "settings.PASSPHRASE is unset.  Input passphrase: ") |                 settings.PASSPHRASE = input( | ||||||
|  |                     "settings.PASSPHRASE is unset.  Input passphrase: " | ||||||
|  |                 ) | ||||||
|  |  | ||||||
|     execute_from_command_line(sys.argv) |     execute_from_command_line(sys.argv) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn