Skip to content

Commit

Permalink
Merge pull request #8866 from joshcooper/unless_exec_docs
Browse files Browse the repository at this point in the history
(docs) lib/puppet/type/exec.rb `unless` `grep(1)` anchors
  • Loading branch information
joshcooper authored Jan 27, 2022
2 parents 5bbd883 + 2990e9c commit 9436743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def check(value)
exec { '/bin/echo root >> /usr/lib/cron/cron.allow':
path => '/usr/bin:/usr/sbin:/bin',
unless => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
unless => 'grep ^root$ /usr/lib/cron/cron.allow 2>/dev/null',
}
This would add `root` to the cron.allow file (on Solaris) unless
Expand Down

0 comments on commit 9436743

Please sign in to comment.