Fix service path

Restrict the path for the service binary to '/sbin/:/usr/sbin/'
This commit is contained in:
Gary Larizza 2011-06-16 16:33:09 -07:00
parent c15ef0ad1b
commit bba9589770

View file

@ -50,7 +50,7 @@ class mysql::server(
exec{ 'mysqld-restart':
command => "service ${service_name} restart",
refreshonly => true,
path => '/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:',
path => '/sbin/:/usr/sbin/',
}
File{
owner => 'mysql',