Update postgresql-install.sh

PostgreSQL version 17
pull/3818/head
tteckster 2024-09-27 06:00:26 -04:00 committed by GitHub
parent 4ead590cf4
commit 1a14c87209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -30,7 +30,7 @@ msg_info "Installing PostgreSQL"
$STD apt-get update $STD apt-get update
$STD apt-get install -y postgresql $STD apt-get install -y postgresql
cat <<EOF >/etc/postgresql/16/main/pg_hba.conf cat <<EOF >/etc/postgresql/17/main/pg_hba.conf
# PostgreSQL Client Authentication Configuration File # PostgreSQL Client Authentication Configuration File
local all postgres peer local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD # TYPE DATABASE USER ADDRESS METHOD
@ -49,7 +49,7 @@ host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256 host replication all ::1/128 scram-sha-256
EOF EOF
cat <<EOF >/etc/postgresql/16/main/postgresql.conf cat <<EOF >/etc/postgresql/17/main/postgresql.conf
# ----------------------------- # -----------------------------
# PostgreSQL configuration file # PostgreSQL configuration file
# ----------------------------- # -----------------------------
@ -58,10 +58,10 @@ cat <<EOF >/etc/postgresql/16/main/postgresql.conf
# FILE LOCATIONS # FILE LOCATIONS
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
data_directory = '/var/lib/postgresql/16/main' data_directory = '/var/lib/postgresql/17/main'
hba_file = '/etc/postgresql/16/main/pg_hba.conf' hba_file = '/etc/postgresql/17/main/pg_hba.conf'
ident_file = '/etc/postgresql/16/main/pg_ident.conf' ident_file = '/etc/postgresql/17/main/pg_ident.conf'
external_pid_file = '/var/run/postgresql/16-main.pid' external_pid_file = '/var/run/postgresql/17-main.pid'
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION # CONNECTIONS AND AUTHENTICATION
@ -107,7 +107,7 @@ log_timezone = 'Etc/UTC'
# PROCESS TITLE # PROCESS TITLE
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
cluster_name = '16/main' cluster_name = '17/main'
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# CLIENT CONNECTION DEFAULTS # CLIENT CONNECTION DEFAULTS