mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
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:
committed by
Tim Abbott
parent
bf9539386a
commit
d89ab2694f
@@ -128,6 +128,7 @@ class Command(ZulipBaseCommand):
|
|||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
[
|
[
|
||||||
"crudini",
|
"crudini",
|
||||||
|
"--inplace",
|
||||||
"--set",
|
"--set",
|
||||||
SECRETS_FILENAME,
|
SECRETS_FILENAME,
|
||||||
"secrets",
|
"secrets",
|
||||||
|
|||||||
Reference in New Issue
Block a user