From c815dba36827f62fc13bdb2f3b609d1651cc50b4 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 14 Apr 2023 20:13:00 +0000 Subject: [PATCH] install: Write out a zulip-git-version upon install. --- scripts/lib/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/install b/scripts/lib/install index 3c48e7c04e..e2b2ffccce 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -539,6 +539,10 @@ mkdir -p "$deploy_path"/prod-static/serve cp -rT "$deploy_path"/prod-static/serve /home/zulip/prod-static chown -R zulip:zulip /home/zulip /var/log/zulip /etc/zulip/settings.py +if ! [ -e /home/zulip/deployments/current/zulip-git-version ]; then + su zulip -c 'cd /home/zulip/deployments/current && ./scripts/lib/update-git-upstream && ./tools/cache-zulip-git-version' +fi + if ! [ -e "/home/zulip/prod-static/generated" ]; then # If we're installing from a Git checkout, we need to run # `tools/update-prod-static` in order to build the static