mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Drop STORAGE_TYPE in favour of just using PAPERLESS_PASSPHRASE
This commit is contained in:
parent
5643d89270
commit
6e1f2b3f03
3 changed files with 16 additions and 36 deletions
|
|
@ -6,16 +6,6 @@ if __name__ == "__main__":
|
|||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "paperless.settings")
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.management import execute_from_command_line
|
||||
|
||||
# The runserver and consumer need to have access to the passphrase, so it
|
||||
# must be entered at start time to keep it safe.
|
||||
if "runserver" in sys.argv or "document_consumer" in sys.argv:
|
||||
if not settings.STORAGE_TYPE == "unencrypted":
|
||||
while not settings.PASSPHRASE:
|
||||
settings.PASSPHRASE = input(
|
||||
"settings.PASSPHRASE is unset. Input passphrase: "
|
||||
)
|
||||
|
||||
execute_from_command_line(sys.argv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue