mirror of https://github.com/zulip/zulip.git
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:
parent
bf9539386a
commit
d89ab2694f
|
@ -128,6 +128,7 @@ class Command(ZulipBaseCommand):
|
|||
subprocess.check_call(
|
||||
[
|
||||
"crudini",
|
||||
"--inplace",
|
||||
"--set",
|
||||
SECRETS_FILENAME,
|
||||
"secrets",
|
||||
|
|
Loading…
Reference in New Issue