Merge pull request #79 from Seldaek/patch-2

Add support for ubuntu 12.10 status
This commit is contained in:
Daniel Pittman 2013-01-16 10:17:19 -08:00
commit a018be54e7

View file

@ -146,14 +146,7 @@ class postgresql::params(
$bindir = "/usr/lib/postgresql/${version}/bin"
$datadir = "/var/lib/postgresql/${version}/main"
$confdir = "/etc/postgresql/${version}/main"
if($manage_package_repo) {
# The postgresql packages (official not distro) return a different
# string when checking status.
$service_status = "/etc/init.d/${service_name} status | /bin/egrep -q 'online'"
} else {
# And this is what the Debian/Ubuntu packages return.
$service_status = "/etc/init.d/${service_name} status | /bin/egrep -q 'Running clusters: .+'"
}
$service_status = "/etc/init.d/${service_name} status | /bin/egrep -q 'Running clusters: .+|online'"
}
default: {