From 6c55341737d1c0d0785b8ad20911b42544bde31b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 Jul 2019 21:10:41 +0200 Subject: [PATCH] better postgres 11 compat in config/pidfile path references Signed-off-by: Thomas Lamprecht --- src/PMG/Config.pm | 2 +- src/PMG/Utils.pm | 2 +- src/templates/postgresql.conf.in | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm index 2392db8..996d485 100755 --- a/src/PMG/Config.pm +++ b/src/PMG/Config.pm @@ -1399,7 +1399,7 @@ sub rewrite_config_freshclam { sub rewrite_config_postgres { my ($self) = @_; - my $pgconfdir = "/etc/postgresql/9.6/main"; + my $pgconfdir = "/etc/postgresql/11/main"; my $changes = 0; diff --git a/src/PMG/Utils.pm b/src/PMG/Utils.pm index a33ea90..aa6aac7 100644 --- a/src/PMG/Utils.pm +++ b/src/PMG/Utils.pm @@ -702,7 +702,7 @@ sub find_local_network_for_ip { my $service_aliases = { 'postfix' => 'postfix@-', - 'postgres' => 'postgresql@9.6-main', + 'postgres' => 'postgresql@11-main', }; sub lookup_real_service_name { diff --git a/src/templates/postgresql.conf.in b/src/templates/postgresql.conf.in index 28f8a42..c13fe20 100644 --- a/src/templates/postgresql.conf.in +++ b/src/templates/postgresql.conf.in @@ -38,15 +38,15 @@ # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. -data_directory = '/var/lib/postgresql/9.6/main' # use data in another directory +data_directory = '/var/lib/postgresql/11/main' # use data in another directory # (change requires restart) -hba_file = '/etc/postgresql/9.6/main/pg_hba.conf' # host-based authentication file +hba_file = '/etc/postgresql/11/main/pg_hba.conf' # host-based authentication file # (change requires restart) -ident_file = '/etc/postgresql/9.6/main/pg_ident.conf' # ident configuration file +ident_file = '/etc/postgresql/11/main/pg_ident.conf' # ident configuration file # (change requires restart) # If external_pid_file is not explicitly set, no extra PID file is written. -external_pid_file = '/var/run/postgresql/9.6-main.pid' # write an extra PID file +external_pid_file = '/var/run/postgresql/11-main.pid' # write an extra PID file # (change requires restart) @@ -460,7 +460,7 @@ log_timezone = 'localtime' # - Process Title - -cluster_name = '9.6/main' # added to process titles if nonempty +cluster_name = '11/main' # added to process titles if nonempty # (change requires restart) #update_process_title = on @@ -476,7 +476,7 @@ cluster_name = '9.6/main' # added to process titles if nonempty #track_io_timing = off #track_functions = none # none, pl, all #track_activity_query_size = 1024 # (change requires restart) -stats_temp_directory = '/var/run/postgresql/9.6-main.pg_stat_tmp' +stats_temp_directory = '/var/run/postgresql/11-main.pg_stat_tmp' # - Statistics Monitoring - -- 2.39.2