From f8d6bc22ed6fec13b4fe4ec4f2cd8349d2299e0d Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 15 Apr 2017 22:41:06 +0200 Subject: main/postgresql: split data and configs Configuration files belong to /etc, not /var/lib/. This change is inspired by Gentoo package. This change will NOT affect existing users, until they update their /etc/conf.d/postgresql config to the new format without changing conf_dir. --- main/postgresql/postgresql.confd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main/postgresql/postgresql.confd') diff --git a/main/postgresql/postgresql.confd b/main/postgresql/postgresql.confd index b5b57329a9..fc7a1c7888 100644 --- a/main/postgresql/postgresql.confd +++ b/main/postgresql/postgresql.confd @@ -45,8 +45,11 @@ # The initscript uses these variables to inform PostgreSQL where to find # its data directory and configuration files. -# PostgreSQL's Database Directory -#PGDATA="/var/lib/postgresql/@VERSION@/data" +# Where the data directory is located/to be created. +#data_dir="/var/lib/postgresql/@VERSION@/data" + +# Location of configuration files. Default is $data_dir. +conf_dir="/etc/postgresql" # Additional options to pass to initdb. # See man initdb(1) for available options. -- cgit v1.2.3