1
0

create data directory if it doesn't exist

ideally this would be done in `main`
This commit is contained in:
Andrew Morgan
2024-08-14 18:52:47 +01:00
parent 20bd26ecad
commit 61349bd860

View File

@@ -72,6 +72,9 @@ def generate_config_from_template(
"macaroon": "SYNAPSE_MACAROON_SECRET_KEY",
}
if not os.path.exists(data_dir):
os.mkdir(data_dir)
synapse_server_name = environ["SYNAPSE_SERVER_NAME"]
for name, secret in secrets.items():
if secret not in environ: