diff options
-rwxr-xr-x | bin/akconfig | 7 |
1 files changed, 7 insertions, 0 deletions
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;; |