Fix postgis default package name on RedHat

The /5/ regex on $::operatingsystemrelease would match any distro release
with a 5 in it, including for example Centos "7.1.1503". Given the commit
message for this regex, it was meant to match RedHat / Centos 5.x.
This commit is contained in:
Christian Kaenzig 2015-07-23 09:45:52 +02:00
parent 7cb4b9d98f
commit 1956881b2b

View file

@ -72,7 +72,7 @@ class postgresql::params inherits postgresql::globals {
$postgis_package_name = pick(
$postgis_package_name,
$::operatingsystemrelease ? {
/5/ => 'postgis',
/^5\./ => 'postgis',
default => versioncmp($postgis_version, '2') ? {
'-1' => "postgis${package_version}",
default => "postgis2_${package_version}",}