We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bbd883 + 2990e9c commit 9436743Copy full SHA for 9436743
lib/puppet/type/exec.rb
@@ -457,7 +457,7 @@ def check(value)
457
458
exec { '/bin/echo root >> /usr/lib/cron/cron.allow':
459
path => '/usr/bin:/usr/sbin:/bin',
460
- unless => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
+ unless => 'grep ^root$ /usr/lib/cron/cron.allow 2>/dev/null',
461
}
462
463
This would add `root` to the cron.allow file (on Solaris) unless
0 commit comments