From 3867120e959a34d3b27422864171d385de76b478 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 10 Jun 2024 17:03:58 +0300 Subject: new flag for ak-config: --get-ipns-key --- bin/ak-config | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3