diff options
-rw-r--r-- | NETWORKING | 2 | ||||
-rwxr-xr-x | bin/ak-config | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -45,7 +45,7 @@ Before we publish anything, we need to know what we need to publish and where. Issuing the command ``` -ipfs key list -l | grep ak-config | cut -d ' ' -f 1 +ak config --get-ipns-key ``` will return to us the IPNS key that points to our current AKID. diff --git a/bin/ak-config b/bin/ak-config index bda8564..24db38f 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -10,6 +10,8 @@ ## ## --get-published Get published ak-config (from IPFS) ## +## --get-ipns-key Get the ak-config IPNS key +## fullprogrampath="$(realpath $0)" PROGRAM="$(basename $0)" descriptionString="Arching Kaos Configuration Tool" @@ -19,6 +21,10 @@ source $AK_LIBDIR/_ak_gpg source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_node +_ak_config_get_ipns_key(){ + _ak_ipfs_key_list_full | grep 'ak-config' | cut -d ' ' -f 1 +} + _ak_config_show(){ # We will be using our public key also to put it in the block later KEY="tmp-gpg.pub" @@ -65,6 +71,7 @@ then --show) _ak_config_show;exit;; --publish) _ak_config_publish;exit;; --get-published) _ak_config_published;exit;; + --get-ipns-key) _ak_config_get_ipns_key;exit;; *) _ak_usage;exit;; esac else |