Skip to content

Commit

Permalink
Merge pull request #78 from edestecd/ignore_gpg
Browse files Browse the repository at this point in the history
Use which to test for gpg2
  • Loading branch information
carlossg committed Feb 5, 2015
2 parents 729b317 + 2d62ec2 commit db5dbb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/system.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

# ignore gpg check if it is not installed, same as rvm does
exec { 'system-rvm-gpg-key':
command => 'gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3',
command => 'which gpg2 && gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3',
path => $::path,
environment => $environment,
unless => 'gpg2 --list-keys D39DC0E3',
onlyif => ['gpg2 --version'],
unless => 'which gpg2 && gpg2 --list-keys D39DC0E3',
onlyif => 'which gpg2',
} ->

exec { 'system-rvm':
Expand Down

0 comments on commit db5dbb0

Please sign in to comment.