mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
upgrade: Make calling shutdown_server twice, only try once.
This commit is contained in:
@@ -104,9 +104,10 @@ IS_SERVER_UP = True
|
|||||||
def shutdown_server() -> None:
|
def shutdown_server() -> None:
|
||||||
global IS_SERVER_UP
|
global IS_SERVER_UP
|
||||||
|
|
||||||
logging.info("Stopping Zulip...")
|
if IS_SERVER_UP:
|
||||||
subprocess.check_call(["./scripts/stop-server"], preexec_fn=su_to_zulip)
|
logging.info("Stopping Zulip...")
|
||||||
IS_SERVER_UP = False
|
subprocess.check_call(["./scripts/stop-server"], preexec_fn=su_to_zulip)
|
||||||
|
IS_SERVER_UP = False
|
||||||
|
|
||||||
|
|
||||||
# postgresql.version is required for database servers, but wasn't
|
# postgresql.version is required for database servers, but wasn't
|
||||||
|
|||||||
Reference in New Issue
Block a user