Skip to content

Commit 4772afa

Browse files
(maint) Merge up 9436743 to main
Generated by CI * commit '94367437fc075a48d279a7f481a708ae0e0faae0': (docs) lib/puppet/type/exec.rb `unless` `grep(1)` anchors
2 parents cbc9059 + 9436743 commit 4772afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def check(value)
457457
458458
exec { '/bin/echo root >> /usr/lib/cron/cron.allow':
459459
path => '/usr/bin:/usr/sbin:/bin',
460-
unless => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
460+
unless => 'grep ^root$ /usr/lib/cron/cron.allow 2>/dev/null',
461461
}
462462
463463
This would add `root` to the cron.allow file (on Solaris) unless

0 commit comments

Comments
 (0)