9
0
Fork 1

GPG privkey fixes.

This commit is contained in:
Johan Björklund 2024-11-21 11:33:26 +01:00
parent f26d12d3e5
commit 9b0df6b2d1
Signed by: bjorklund
GPG key ID: 5E8401339C7F5037

View file

@ -316,6 +316,7 @@ class soc::intelmq(
exec { 'Import private gpg key':
command => "sudo -u intelmq /usr/bin/gpg --import /opt/intelmq/.gnupg/${privkey}.asc",
unless => "sudo -u intelmq /usr/bin/gpg -K 2>/dev/null | grep ${privkey}",
require => File["/opt/intelmq/.gnupg/${privkey}.asc"].
}
}