mirror of https://github.com/zulip/zulip.git
upgrade-postgresql: Check for extension upgrade steps.
This commit is contained in:
parent
73055255bb
commit
3455fc137a
|
@ -57,6 +57,9 @@ su postgres -c "/usr/lib/postgresql/$UPGRADE_TO/bin/vacuumdb --all --analyze-onl
|
|||
pg_dropcluster "$UPGRADE_FROM" main
|
||||
apt remove -y "postgresql-$UPGRADE_FROM"
|
||||
if [ -n "$SCRIPTS_PATH" ]; then
|
||||
if [ -f "$SCRIPTS_PATH/update_extensions.sql" ]; then
|
||||
su postgres -c "psql $SCRIPTS_PATH/update_extensions.sql"
|
||||
fi
|
||||
su postgres -c "$SCRIPTS_PATH/delete_old_cluster.sh"
|
||||
rm -rf "$SCRIPTS_PATH"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue