upgrade: Show output from (re)starting zulip.

5c450afd2d, in ancient history, switched from `check_call` to
`check_output` and throwing away its result.

Use check_call, so that we show the steps to (re)starting the server.
This commit is contained in:
Alex Vandiver 2022-01-05 00:40:32 +00:00
parent e705883857
commit bd7deed691
1 changed files with 2 additions and 2 deletions

View File

@ -351,9 +351,9 @@ if IS_SERVER_UP or not args.skip_puppet:
restart_args.append("--skip-tornado")
if args.less_graceful:
restart_args.append("--less-graceful")
subprocess.check_output(["./scripts/restart-server", *restart_args], preexec_fn=su_to_zulip)
subprocess.check_call(["./scripts/restart-server", *restart_args], preexec_fn=su_to_zulip)
else:
subprocess.check_output(["./scripts/start-server", "--fill-cache"], preexec_fn=su_to_zulip)
subprocess.check_call(["./scripts/start-server", "--fill-cache"], preexec_fn=su_to_zulip)
logging.info("Upgrade complete!")