update-deployment: Make zulip-dropbox.png logic conditional.

This commit is contained in:
Tim Abbott 2016-07-18 21:58:10 -07:00
parent 6b0d8ecfba
commit 13c2effb61
1 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,9 @@ try:
os.path.join(deploy_path, "zulip-venv")]) os.path.join(deploy_path, "zulip-venv")])
# Hack to deploy images not included in open source project # Hack to deploy images not included in open source project
subprocess.check_call(["cp", "-a", "/etc/zulip/zulip-dropbox.png", if os.path.exists("/etc/zulip/zulip-dropbox.png"):
os.path.join(deploy_path, "static/images/logo")]) subprocess.check_call(["cp", "-a", "/etc/zulip/zulip-dropbox.png",
os.path.join(deploy_path, "static/images/logo")])
# Update static files # Update static files
logging.info("Updating static files") logging.info("Updating static files")