From d6595e3a11736008ce10389ae81e3ea43e53b615 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 10 Aug 2022 04:38:09 +0300 Subject: Added a function to return from IPFS as well --- bin/akconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/akconfig') diff --git a/bin/akconfig b/bin/akconfig index 3a833af..821e910 100755 --- a/bin/akconfig +++ b/bin/akconfig @@ -10,6 +10,7 @@ usage(){ echo "" echo " show Show current configuration (from FileSystem)" echo " publish Publish current configuration" + echo " get-published Get published ak-config (from IPFS)" echo "" exit 0 } @@ -30,6 +31,10 @@ publish(){ rm tmpfile } +published(){ + ipfs cat $(get_akid) +} + # 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 @@ -40,6 +45,7 @@ if [ ! -z $1 ]; then case $1 in show) show;exit;; publish) publish;exit;; + get-published) published;exit;; *) usage;exit;; esac else -- cgit v1.2.3