From 4d9049126419b8596f692b8ec0cbe8da13003e83 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 6 Dec 2024 13:25:43 +0100 Subject: [PATCH] Copy pg_hba.conf --- migrate.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/migrate.sh b/migrate.sh index 2dfbb6b..29e6a7e 100644 --- a/migrate.sh +++ b/migrate.sh @@ -23,6 +23,7 @@ mkdir "$NEW_DB_PATH" # Perform migration cd /tmp /postgres/17/bin/pg_upgrade -b /postgres/16/bin/ -d "$OLD_DB_PATH" -D "$NEW_DB_PATH" -U "$POSTGRES_USER" || exit 2 +cp "$OLD_DB_PATH/pg_hba.conf" "$NEW_DB_PATH/pg_hba.conf" # Replace database