]> git.proxmox.com Git - pmg-api.git/commit
adapt postgresql.conf template to variable version
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 8 Aug 2019 13:36:11 +0000 (15:36 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Aug 2019 06:45:05 +0000 (08:45 +0200)
commit2005e4b3442916d92a16af9a4b2bbf7da4dc3f01
tree0e781bd7e353cc508b3c6eb636e47421c3ed4e3e
parent8ba633175a6d803192da9ae5dc130216ad0cdfe0
adapt postgresql.conf template to variable version

pass the postgres major version in template_vars->{postgres}->{version} and
use that in the template. Additionally use the version for the config file
location.

The start and end tags are changed to '<*' and '*>' since the original
postgresql.conf contains an occurence of the default start tag '[%' which
would need to get escaped

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm
src/templates/postgresql.conf.in