Skip to content

Commit 0438db2

Browse files
committed
Merge pull request puppetlabs#588 from mhaskel/fix_for_586
Since this was in an osfamily block it was getting picked up on ubuntu
2 parents 67577e8 + 72c6942 commit 0438db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
$bindir = pick($bindir, "/usr/lib/postgresql/${version}/bin")
143143
$datadir = pick($datadir, "/var/lib/postgresql/${version}/main")
144144
$confdir = pick($confdir, "/etc/postgresql/${version}/main")
145-
if versioncmp($::operatingsystemrelease, '8.0') >= 0 {
145+
if $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8.0') >= 0 {
146146
# Jessie uses systemd
147147
$service_status = pick($service_status, "/usr/sbin/service ${service_name}@*-main status")
148148
} else {

0 commit comments

Comments
 (0)