mirror of https://github.com/zulip/zulip.git
ci: Test that the installed PostgreSQL was what was asked for.
This commit is contained in:
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!"
|
||||
|
|
Loading…
Reference in New Issue