mirror of https://github.com/zulip/zulip.git
hooks: Run hooks as the zulip user, not as root.
This commit is contained in:
parent
89e366771a
commit
790e4854dd
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue