Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Only require a passphrase if STORAGE_TYPE is not "unencrypted"

Daniel Quinne5b7e93eff2c
diff --git a/src/manage.py b/src/manage.py
index 040af1249..823f41541 100755
--- a/src/manage.py
+++ b/src/manage.py
@@ -11,8 +11,10 @@ if __name__ == "__main__":
# 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(settings.ENABLE_ENCRYPTION and not settings.PASSPHRASE):
- settings.PASSPHRASE = input(
- "settings.PASSPHRASE is unset. Input passphrase: ")
+ if not settings.STORAGE_TYPE == "unencrypted":
+ if not settings.PASSPHRASE:
+ settings.PASSPHRASE = input(
+ "settings.PASSPHRASE is unset. Input passphrase: "
+ )
execute_from_command_line(sys.argv)