aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-01 20:43:36 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-01 20:43:36 +0200
commit9bba811e7c6c1081cd73a935ee9eb043b6574e0a (patch)
treecdb6acead75e6bda2f1e55eb8e3ff438b8b22cfa
parent347e75c7b74ed95f967f0f51a08b49c98eeaa9d6 (diff)
downloadarching-kaos-tools-9bba811e7c6c1081cd73a935ee9eb043b6574e0a.tar.gz
arching-kaos-tools-9bba811e7c6c1081cd73a935ee9eb043b6574e0a.tar.bz2
arching-kaos-tools-9bba811e7c6c1081cd73a935ee9eb043b6574e0a.zip
Added GPG key on the configuration output
-rwxr-xr-xbin/akconfig7
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;;