diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-15 22:41:06 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-15 23:37:29 +0200 |
commit | f8d6bc22ed6fec13b4fe4ec4f2cd8349d2299e0d (patch) | |
tree | 2b645347c80c0c1735fbb5d49706b918f9858186 /main/postgresql/postgresql.confd | |
parent | 10d9cc8000c7da49bf13e516928f30fc80b1cf9f (diff) | |
download | aports-f8d6bc22ed6fec13b4fe4ec4f2cd8349d2299e0d.tar.bz2 aports-f8d6bc22ed6fec13b4fe4ec4f2cd8349d2299e0d.tar.xz |
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.
Diffstat (limited to 'main/postgresql/postgresql.confd')
-rw-r--r-- | main/postgresql/postgresql.confd | 7 |
1 files changed, 5 insertions, 2 deletions
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. |