Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade-postgresql: Check for extension upgrade steps.
Alex Vandiver3455fc137aee
diff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresqlindex 37bc8f8e715..72653b8e7dd 100755--- a/scripts/setup/upgrade-postgresql+++ b/scripts/setup/upgrade-postgresql@@ -57,6 +57,9 @@ su postgres -c "/usr/lib/postgresql/$UPGRADE_TO/bin/vacuumdb --all --analyze-onlpg_dropcluster "$UPGRADE_FROM" mainapt 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"+ fisu postgres -c "$SCRIPTS_PATH/delete_old_cluster.sh"rm -rf "$SCRIPTS_PATH"else