hooks: Run hooks as the zulip user, not as root.

This commit is contained in:
Alex Vandiver 2023-03-30 17:57:34 +00:00 committed by Tim Abbott
parent 89e366771a
commit 790e4854dd
1 changed files with 1 additions and 0 deletions

View File

@ -449,6 +449,7 @@ def run_hooks(kind: Literal["pre-deploy", "post-deploy"]) -> None:
subprocess.check_call(
[os.path.join(path, script_name), old_version, NEW_ZULIP_VERSION],
cwd=deploy_path,
preexec_fn=su_to_zulip,
)