Copy pg_hba.conf

This commit is contained in:
Pierre HUBERT 2024-12-06 13:25:43 +01:00
parent f37c1d2c44
commit 4d90491264

View File

@ -23,6 +23,7 @@ mkdir "$NEW_DB_PATH"
# Perform migration # Perform migration
cd /tmp cd /tmp
/postgres/17/bin/pg_upgrade -b /postgres/16/bin/ -d "$OLD_DB_PATH" -D "$NEW_DB_PATH" -U "$POSTGRES_USER" || exit 2 /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 # Replace database