diff --git a/management/utils.py b/management/utils.py index 879776c3..5a036103 100644 --- a/management/utils.py +++ b/management/utils.py @@ -21,8 +21,7 @@ def load_env_vars_from_file(fn): def save_environment(env): with open("/etc/mailinabox.conf", "w", encoding="utf-8") as f: - for k, v in env.items(): - f.write(f"{k}={v}\n") + f.writelines(f"{k}={v}\n" for k, v in env.items()) # THE SETTINGS FILE AT STORAGE_ROOT/settings.yaml.