From 9bba811e7c6c1081cd73a935ee9eb043b6574e0a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 1 Feb 2022 20:43:36 +0200 Subject: Added GPG key on the configuration output --- bin/akconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/akconfig') diff --git a/bin/akconfig b/bin/akconfig index bb1cfaf..eb76bb9 100755 --- a/bin/akconfig +++ b/bin/akconfig @@ -12,6 +12,7 @@ show(){ { "profile":'$(profile index | json_pp)', "genesis":"'$(cat $HOME/.arching-kaos/config/zgenesis)'", + "gpg":"'$GPG_PUB_KEY'", "zchain":"'$(cat $HOME/.arching-kaos/config/zchain)'" }'; } @@ -22,6 +23,12 @@ publish(){ rm tmpfile } +# We will be using our public key also to put it in the block later +KEY="tmp-gpg.pub" +gpg2 --armour --output $KEY --export $FINGERPRINT +GPG_PUB_KEY=$(ipfs add -q $KEY) +rm $KEY + if [ ! -z $1 ]; then case $1 in show) show;exit;; -- cgit v1.2.3