register_server: Call crudini with --inplace when rotating secret key.

This is needed for the command to work in docker-zulip, where the zulip
user may not have write permissions to the parent directory of the
secrets file. By default, crudini creates a temporary file, which makes
the command fail under those conditions.
With --inplace, the secret file gets written to directly without
creation of temporary files.
This commit is contained in:
Mateusz Mandera 2024-07-15 21:55:38 +02:00 committed by Tim Abbott
parent bf9539386a
commit d89ab2694f
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ class Command(ZulipBaseCommand):
subprocess.check_call(
[
"crudini",
"--inplace",
"--set",
SECRETS_FILENAME,
"secrets",