aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-config
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-config')
-rwxr-xr-xbin/ak-config7
1 files changed, 7 insertions, 0 deletions
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