mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	Compare commits
	
		
			11 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | a025fab082 | ||
|  | 812ad52007 | ||
|  | 9066fcac9a | ||
|  | a70ebdb005 | ||
|  | 956d4b2568 | ||
|  | ea2256da29 | ||
|  | d1bd8f3637 | ||
|  | 22d486bbf7 | ||
|  | 977ff62fe8 | ||
|  | 5bfc162df9 | ||
|  | 2aa643502a | 
| @@ -7,6 +7,16 @@ up-to-date list of raw changes. | ||||
|  | ||||
| ## Zulip 4.x series | ||||
|  | ||||
| ### 4.2 -- 2021-05-13 | ||||
|  | ||||
| - Fix exception in purge-old-deployments when upgrading on | ||||
|   a system that has never upgraded using Git. | ||||
| - Fix installation from a directory readable only by root. | ||||
|  | ||||
| ### 4.1 -- 2021-05-13 | ||||
|  | ||||
| - Fix exception upgrading to the 4.x series from older releases. | ||||
|  | ||||
| ### 4.0 -- 2021-05-13 | ||||
|  | ||||
| #### Highlights | ||||
|   | ||||
| @@ -524,8 +524,11 @@ if has_class "zulip::app_frontend_base"; then | ||||
| fi | ||||
|  | ||||
| # Set up a basic .gitconfig for the 'zulip' user | ||||
| ( | ||||
|     cd / # Make sure the current working directory is readable by zulip | ||||
|     su zulip -c "git config --global user.email $ZULIP_ADMINISTRATOR" | ||||
|     su zulip -c "git config --global user.name 'Zulip Server ($EXTERNAL_HOST)'" | ||||
| ) | ||||
|  | ||||
| if [ -n "$NO_INIT_DB" ]; then | ||||
|     set +x | ||||
|   | ||||
| @@ -600,7 +600,21 @@ def is_vagrant_env_host(path: str) -> bool: | ||||
|  | ||||
|  | ||||
| def has_application_server() -> bool: | ||||
|     return os.path.exists("/etc/supervisor/conf.d/zulip/zulip.conf") | ||||
|     return ( | ||||
|         # Current path | ||||
|         os.path.exists("/etc/supervisor/conf.d/zulip/zulip.conf") | ||||
|         # Old path, relevant for upgrades | ||||
|         or os.path.exists("/etc/supervisor/conf.d/zulip.conf") | ||||
|     ) | ||||
|  | ||||
|  | ||||
| def has_process_fts_updates() -> bool: | ||||
|     return ( | ||||
|         # Current path | ||||
|         os.path.exists("/etc/supervisor/conf.d/zulip/zulip_db.conf") | ||||
|         # Old path, relevant for upgrades | ||||
|         or os.path.exists("/etc/supervisor/conf.d/zulip_db.conf") | ||||
|     ) | ||||
|  | ||||
|  | ||||
| def deport(netloc: str) -> str: | ||||
|   | ||||
| @@ -14,6 +14,8 @@ from scripts.lib.zulip_tools import ( | ||||
|     su_to_zulip, | ||||
| ) | ||||
|  | ||||
| LOCAL_GIT_CACHE_DIR = "/srv/zulip.git" | ||||
|  | ||||
|  | ||||
| def parse_args() -> argparse.Namespace: | ||||
|     parser = argparse.ArgumentParser( | ||||
| @@ -75,8 +77,9 @@ def main() -> None: | ||||
|     ) | ||||
|  | ||||
|     if not args.dry_run: | ||||
|         if os.path.exists(LOCAL_GIT_CACHE_DIR): | ||||
|             subprocess.check_call( | ||||
|             ["git", "worktree", "prune"], cwd="/srv/zulip.git", preexec_fn=su_to_zulip | ||||
|                 ["git", "worktree", "prune"], cwd=LOCAL_GIT_CACHE_DIR, preexec_fn=su_to_zulip | ||||
|             ) | ||||
|  | ||||
|         print("Deployments cleaned successfully...") | ||||
|   | ||||
| @@ -17,6 +17,7 @@ from scripts.lib.zulip_tools import ( | ||||
|     get_config_file, | ||||
|     get_tornado_ports, | ||||
|     has_application_server, | ||||
|     has_process_fts_updates, | ||||
|     overwrite_symlink, | ||||
| ) | ||||
|  | ||||
| @@ -90,7 +91,7 @@ if has_application_server(): | ||||
|             worker_status.check_returncode() | ||||
|         workers.extend(status_line.split()[0] for status_line in worker_status.stdout.splitlines()) | ||||
|  | ||||
| if os.path.exists("/etc/supervisor/conf.d/zulip/zulip_db.conf"): | ||||
| if has_process_fts_updates(): | ||||
|     workers.append("process-fts-updates") | ||||
|  | ||||
| if action == "restart" and len(workers) > 0: | ||||
|   | ||||
| @@ -28,7 +28,7 @@ fi | ||||
|  | ||||
| # Shut down all services to ensure a quiescent state. | ||||
| if [ -e "/var/run/supervisor.sock" ]; then | ||||
|     su zulip -c "$(dirname "$(dirname "$0")")/stop-server" | ||||
|     supervisorctl stop all | ||||
| fi | ||||
|  | ||||
| # Drop any open connections to any old database. | ||||
|   | ||||
| @@ -7,7 +7,13 @@ import sys | ||||
| import time | ||||
|  | ||||
| sys.path.append(os.path.join(os.path.dirname(__file__), "..")) | ||||
| from scripts.lib.zulip_tools import ENDC, OKGREEN, WARNING, has_application_server | ||||
| from scripts.lib.zulip_tools import ( | ||||
|     ENDC, | ||||
|     OKGREEN, | ||||
|     WARNING, | ||||
|     has_application_server, | ||||
|     has_process_fts_updates, | ||||
| ) | ||||
|  | ||||
| deploy_path = os.path.realpath(os.path.join(os.path.dirname(__file__), "..")) | ||||
| os.chdir(deploy_path) | ||||
| @@ -22,7 +28,7 @@ logging.basicConfig(format="%(asctime)s stop-server: %(message)s", level=logging | ||||
| services = [] | ||||
|  | ||||
| # Start with the least-critical services: | ||||
| if os.path.exists("/etc/supervisor/conf.d/zulip/zulip_db.conf"): | ||||
| if has_process_fts_updates(): | ||||
|     services.append("process-fts-updates") | ||||
|  | ||||
| if has_application_server(): | ||||
|   | ||||
| @@ -1491,8 +1491,7 @@ div.focused_table { | ||||
|  | ||||
| .message-edit-feature-group { | ||||
|     display: inline-flex; | ||||
|     margin-left: 10px; | ||||
|     margin-bottom: -5px; | ||||
|     margin: -10px auto -5px 10px; | ||||
|     align-items: baseline; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,7 @@ below features are supported. | ||||
|  | ||||
| **Feature level 65** | ||||
|  | ||||
| No changes; feature level used for Zulip 3.0 release. | ||||
| No changes; feature level used for Zulip 4.0 release. | ||||
|  | ||||
| **Feature level 64** | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import os | ||||
|  | ||||
| ZULIP_VERSION = "4.0" | ||||
| ZULIP_VERSION = "4.2" | ||||
|  | ||||
| # Add information on number of commits and commit hash to version, if available | ||||
| zulip_git_version_file = os.path.join( | ||||
| @@ -14,8 +14,8 @@ ZULIP_VERSION = lines.pop(0).strip() | ||||
| ZULIP_MERGE_BASE = lines.pop(0).strip() | ||||
|  | ||||
| LATEST_MAJOR_VERSION = "4.0" | ||||
| LATEST_RELEASE_VERSION = "4.0" | ||||
| LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2020/07/16/zulip-3-0-released/" | ||||
| LATEST_RELEASE_VERSION = "4.2" | ||||
| LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.com/2021/05/13/zulip-4-0-released/" | ||||
|  | ||||
| # Versions of the desktop app below DESKTOP_MINIMUM_VERSION will be | ||||
| # prevented from connecting to the Zulip server.  Versions above | ||||
|   | ||||
		Reference in New Issue
	
	Block a user