diff --git a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp index 5eaf302..b5ce89f 100644 --- a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp +++ b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp @@ -315,7 +315,7 @@ class soc::intelmq( } exec { 'Import private gpg key': command => "sudo -u intelmq /usr/bin/gpg -import /opt/intelmq/.gnupg/${privkey}.asc", - unless => "gpg -K ${privkey} 2>&1 > /dev/null", + unless => "sudo -u intelmq /usr/bin/gpg -K 2>/dev/null | grep ${privkey}", } }