diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2022-08-10 04:38:09 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2022-08-10 04:38:09 +0300 |
commit | d6595e3a11736008ce10389ae81e3ea43e53b615 (patch) | |
tree | 955be2d8dbadaf81fb3af234e6fc8ef319f838d0 /bin | |
parent | e894f848a4cee589b3e5fe915ad23e09aedcfd6f (diff) | |
download | arching-kaos-tools-d6595e3a11736008ce10389ae81e3ea43e53b615.tar.gz arching-kaos-tools-d6595e3a11736008ce10389ae81e3ea43e53b615.tar.bz2 arching-kaos-tools-d6595e3a11736008ce10389ae81e3ea43e53b615.zip |
Added a function to return from IPFS as well
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/akconfig | 6 |
1 files changed, 6 insertions, 0 deletions
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 |