From 7cbb4e361cb113f14d1353e9e5d23e21cb4a4c3c Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 5 Dec 2024 11:09:12 +0000 Subject: [PATCH] Uninstall old postgres before installing new one. --- .github/workflows/budibase_ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index cb20bb8c37..2151e1e342 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -203,6 +203,12 @@ jobs: - name: Set up PostgreSQL 16 if: matrix.datasource == 'postgres' run: | + sudo systemctl stop postgresql + sudo apt-get remove --purge -y postgresql* libpq-dev + sudo rm -rf /etc/postgresql /var/lib/postgresql + sudo apt-get autoremove -y + sudo apt-get autoclean + sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update