Changed sysctl to use test instead of egrep.
This commit is contained in:
parent
9c853fa445
commit
6b9e0118c3
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ define sysctl::set($value) {
|
|||
exec { "sysctl-${name}":
|
||||
command => "sysctl -w ${name}='${value}'",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => "sysctl -n ${name} | egrep '^${value}'",
|
||||
unless => "test \"`sysctl -n ${name}`\" = \"${value}\"",
|
||||
}
|
||||
|
||||
exec { "sysctl-${name}-save":
|
||||
|
|
Loading…
Add table
Reference in a new issue