mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Added ability to specify fortune file via an environment variable
This commit is contained in:
parent
fa07f94051
commit
95357687f9
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ CLOSE_PROPOSALS = int(os.environ.get("CLOSE_PROPOSALS", 50))
|
|||
RANDOM_TLDS = ("edu", "com", "org", "net", "tw", "ru", "pl", "de", "es")
|
||||
RANDOM_URL = ("http://www.", "ftp://ftp.", "http://", "ftp://")
|
||||
RANDOM_LOCS = ("pub", "release", "files", "downloads", "src")
|
||||
FORTUNE_FILE = "/usr/share/fortune/cookie"
|
||||
FORTUNE_FILE = os.environ.get("FORTUNE_FILE", "/usr/share/fortune/cookie")
|
||||
|
||||
# setup logging
|
||||
logformat = "%(levelname)s: %(message)s"
|
||||
|
|
Loading…
Add table
Reference in a new issue