diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-16 15:20:13 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-16 15:21:06 -0700 |
commit | 8cdfe06dc48eb66f847aec6e630a121192ca205d (patch) | |
tree | 02b0ae8a5b9a865292f928d4b9caf801972ebc6d /src/property/apt.lisp | |
parent | 082d760dbf167716128a2a13577ed869c82d6835 (diff) | |
download | consfigurator-8cdfe06dc48eb66f847aec6e630a121192ca205d.tar.gz |
add APT:TRUSTS-KEY & specify that --pgp-pubkey is ASCII-armoured
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/apt.lisp')
-rw-r--r-- | src/property/apt.lisp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp index a612a2b..b68b82b 100644 --- a/src/property/apt.lisp +++ b/src/property/apt.lisp @@ -224,6 +224,15 @@ after BASENAME. CONTENT is as the content argument to FILE:HAS-CONTENT." (:hostattrs (os:required 'os:debianlike)) (:apply (apt-get "clean") :no-change)) +(defproplist trusts-key :posix + (fingerprint &optional (basename (remove #\Space fingerprint)) + &aux (file #?"/etc/apt/trusted.gpg.d/${basename}.asc")) + "Have apt trust the PGP key identified by FINGERPRINT to sign apt archives." + (:desc #?"apt trusts PGP public key ${fingerprint}") + (with-unapply + (file:data-uploaded "--pgp-pubkey" (remove #\Space fingerprint) file) + :unapply (file:does-not-exist file))) + ;;;; Reports on installation status |