Set sensible path in exec to reload postgres

In the exec resource to reload postgres add path parameter and set it to
"/usr/bin:/usr/sbin:/bin:/sbin", so that the service command can be
called correctly on different platforms.
This commit is contained in:
Andreas Ntaflos 2012-11-15 16:39:56 +01:00
parent 19a512b06d
commit d44de361b6

View file

@ -49,8 +49,9 @@ class postgresql::server (
status => $service_status,
}
exec {'reload_postgresql':
exec { 'reload_postgresql':
path => '/usr/bin:/usr/sbin:/bin:/sbin',
command => "service ${postgresql::params::service_name} reload",
refreshonly => true,
command => "/usr/bin/service ${postgresql::params::service_name} reload",
}
}