Fix bad listen address
This commit is contained in:
parent
4d90491264
commit
02d4e55323
@ -23,8 +23,11 @@ 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"
|
|
||||||
|
|
||||||
|
# Configure database server
|
||||||
|
echo Configure database server
|
||||||
|
cp "$OLD_DB_PATH/pg_hba.conf" "$NEW_DB_PATH/pg_hba.conf"
|
||||||
|
sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" "$NEW_DB_PATH/postgresql.conf"
|
||||||
|
|
||||||
# Replace database
|
# Replace database
|
||||||
echo "Replace database files..."
|
echo "Replace database files..."
|
||||||
|
Loading…
Reference in New Issue
Block a user