Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hooks: Run hooks as the zulip user, not as root.
Alex Vandiver790e4854dd13
diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2index 3a12e26c398..579d6195dda 100755--- a/scripts/lib/upgrade-zulip-stage-2+++ b/scripts/lib/upgrade-zulip-stage-2@@ -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,)