From 28717aded7df4ac4842fa308e67c1c15e1de4ffa Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 03:49:27 +0200 Subject: Introduced and applied _ak_gpg library --- bin/ak-comments | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ak-comments') diff --git a/bin/ak-comments b/bin/ak-comments index 02486f5..6a4bb03 100755 --- a/bin/ak-comments +++ b/bin/ak-comments @@ -4,6 +4,7 @@ descriptionString="Comments module for Arching Kaos" source $AK_LIBDIR/_ak_logit source $AK_LIBDIR/_ak_script_description +source $AK_LIBDIR/_ak_gpg ZCOMMENTSDIR="$AK_WORKDIR/comments" TEMP="/tmp/aktmp" @@ -64,7 +65,7 @@ _ak_modules_comments_add(){ DATETIME="$1" FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" - gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE + _ak_gpg_sign_detached $FILE_SIGN_FILE $FILE FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) printf '{"datetime":"%s","ipfs":"%s","detach":"%s"}' $DATETIME $FILE_IPFS_HASH $FILE_SIGNATURE > data else -- cgit v1.2.3