Files
zulip/tools/ci/production-upgrade-pg
Alex Vandiver ec12a6128a scripts: Add a start-server as well.
In general, `./scripts/restart-server` will already work in any
circumstance where the server is already stopped and needs to be
started.  However, it will output a couple minor warnings, and it is
not readily obvious that it *will* work correctly.

Add an alias for `restart-server` named `start-server`, for
parallelism with `stop-server`, which omits the steps of
`restart-server` which would stop the server first.
2021-04-21 10:24:08 -07:00

14 lines
243 B
Bash
Executable File

#!/usr/bin/env bash
# This tests upgrading PostgreSQL
set -e
set -x
cd /home/github/zulip
su zulip -c ./scripts/stop-server
./scripts/setup/upgrade-postgresql
su zulip -c ./scripts/start-server
echo "Upgrade of PostgreSQL complete!"
exit 0