#!/usr/bin/env bash
# This tests upgrading PostgreSQL
set -e
set -x
ZULIP_PATH=/home/github/zulip
supervisorctl stop all
"$ZULIP_PATH"/scripts/setup/upgrade-postgresql
supervisorctl start all
echo "Upgrade of PostgreSQL complete!"
exit 0