Merge pull request #79 from Seldaek/patch-2
Add support for ubuntu 12.10 status
This commit is contained in:
commit
a018be54e7
1 changed files with 1 additions and 8 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue