Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
restart-server: Skip weekly restart-server if a deploy is in process.
Alex Vandiver6d80d4c77f8e
diff --git a/scripts/restart-server b/scripts/restart-serverindex 67f4f1fda94..3a2d4fbb46f 100755--- a/scripts/restart-server+++ b/scripts/restart-server@@ -17,6 +17,7 @@ from scripts.lib.supervisor import list_supervisor_processesfrom scripts.lib.zulip_tools import (DEPLOYMENTS_DIR,ENDC,+ LOCK_DIR,OKGREEN,WARNING,get_config,@@ -51,6 +52,10 @@ elif username != "zulip":sys.exit(1)+if os.environ.get("RUNNING_UNDER_CRON") and os.path.exists(LOCK_DIR):+ logging.info("Skipping cron-triggered restart during deploy.")+ sys.exit(1)+if not args.skip_checks:logging.info("Running syntax and database checks")subprocess.check_call(["./manage.py", "check", "--database", "default"])