install: Fix check for whether update-prod-static is needed.

The previous version seems to be created without update-prod-static.
This commit is contained in:
Tim Abbott 2017-09-22 19:52:33 -07:00
parent f3b4de822b
commit 0a91a5510c
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ if [ "$has_appserver" = 0 ]; then
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/prod-static" ]; then
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
# assets.