We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e06ef commit 769d6b6Copy full SHA for 769d6b6
imageroot/bin/discover-database
@@ -10,7 +10,7 @@ import agent
10
import os
11
12
# Connect the local Redis replica. This is necessary to consistently start
13
-database = "database.env"
+database = "paperless-db.env"
14
# check if it exists
15
# set the default values
16
@@ -26,6 +26,8 @@ if not os.path.exists(database):
26
"PAPERLESS_DBPASS": POSTGRES_PASSWORD,
27
}
28
agent.write_envfile("paperless-db.env", paperless_config)
29
+
30
+if not os.path.exists("secret_key.env"):
31
PAPERLESS_SECRET_KEY = os.getenv("PAPERLESS_SECRET_KEY", "")
32
secret_key = {
33
"PAPERLESS_SECRET_KEY": PAPERLESS_SECRET_KEY,
0 commit comments