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:
parent
7cb4b9d98f
commit
1956881b2b
1 changed files with 1 additions and 1 deletions
|
@ -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}",}
|
||||
|
|
Loading…
Reference in a new issue