mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ci: Test that the installed PostgreSQL was what was asked for.
This commit is contained in:
committed by
Tim Abbott
parent
787c74d0b8
commit
dffbd91452
@@ -80,6 +80,10 @@ if [ -n "${POSTGRESQL_VERSION:-}" ]; then
|
||||
echo "Installer did not install the PostgreSQL $POSTGRESQL_VERSION that we asked for!"
|
||||
exit 1
|
||||
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
|
||||
|
||||
echo "Production installation complete!"
|
||||
|
Reference in New Issue
Block a user