ci: Test that the installed PostgreSQL was what was asked for.

This commit is contained in:
Alex Vandiver 2023-05-04 23:08:01 -04:00 committed by Tim Abbott
parent 787c74d0b8
commit dffbd91452
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ if [ -n "${POSTGRESQL_VERSION:-}" ]; then
echo "Installer did not install the PostgreSQL $POSTGRESQL_VERSION that we asked for!" echo "Installer did not install the PostgreSQL $POSTGRESQL_VERSION that we asked for!"
exit 1 exit 1
fi fi
if ! su - zulip -c "psql -tc 'select version()'" | grep -q "^ PostgreSQL $POSTGRESQL_VERSION\."; then
echo "Installed PostgreSQL is not actually PostgreSQL $POSTGRESQL_VERSION!"
exit 1
fi
fi fi
echo "Production installation complete!" echo "Production installation complete!"