Skip to content

Commit 1956881

Browse files
committed
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.
1 parent 7cb4b9d commit 1956881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
$postgis_package_name = pick(
7373
$postgis_package_name,
7474
$::operatingsystemrelease ? {
75-
/5/ => 'postgis',
75+
/^5\./ => 'postgis',
7676
default => versioncmp($postgis_version, '2') ? {
7777
'-1' => "postgis${package_version}",
7878
default => "postgis2_${package_version}",}

0 commit comments

Comments
 (0)