chore: Fix permission issues when gunicorn master creates the .ui.json file at startup

This commit is contained in:
Théophile Diot 2024-06-18 09:37:55 +01:00
parent 5a1d88dd3e
commit 774f239eed
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -57,8 +57,6 @@ def on_starting(server):
if not getenv("FLASK_SECRET") and not TMP_DIR.joinpath(".flask_secret").is_file():
TMP_DIR.joinpath(".flask_secret").write_text(sha256(urandom(32)).hexdigest(), encoding="utf-8")
TMP_DIR.joinpath(".ui.json").write_text("{}", encoding="utf-8")
LOGGER = setup_logger("UI")
db = Database(LOGGER, ui=True)