diff --git a/scripts/lib/install b/scripts/lib/install index 8efb1e4ee8..fdf59b9def 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -555,6 +555,9 @@ 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 + mkdir /srv/zulip.git + chown zulip:zulip /srv/zulip.git + su zulip -c 'git clone --bare --mirror /home/zulip/deployments/current /srv/zulip.git' su zulip -c 'cd /home/zulip/deployments/current && ./scripts/lib/update-git-upstream && ./tools/cache-zulip-git-version' fi