aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-config
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
commit465d5db06e56dc21072a8ff01258f6815d340b00 (patch)
treeae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-config
parent1cb6c8bef840a96baa37392e9833a7674f805a83 (diff)
downloadarching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-config')
-rwxr-xr-xbin/ak-config7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ak-config b/bin/ak-config
index 8e2df7b..1fe4d8d 100755
--- a/bin/ak-config
+++ b/bin/ak-config
@@ -3,6 +3,7 @@ PROGRAM="$(basename $0)"
descriptionString="Arching Kaos Configuration Tool"
source $AK_LIBDIR/_ak_script_description
+source $AK_LIBDIR/_ak_ipfs
_ak_config_title(){
description
@@ -25,7 +26,7 @@ _ak_config_show(){
# We will be using our public key also to put it in the block later
KEY="tmp-gpg.pub"
gpg2 --homedir $AK_GPGHOME --armour --output $KEY --export $AK_FINGERPRINT
- GPG_PUB_KEY=$(ak-ipfs-add $KEY)
+ GPG_PUB_KEY=$(_ak_ipfs_add $KEY)
rm $KEY
echo '
@@ -45,7 +46,7 @@ _ak_config_publish(){
then
ipfs key gen ak-config
fi
- ak-ipfs-name-publish --key=ak-config /ipfs/$(ak-ipfs-add tmpfile)
+ _ak_ipfs_name_publish --key=ak-config /ipfs/$(_ak_ipfs_add tmpfile)
if [ "$?" != 0 ]
then
echo -e "\033[0;34mError on publishing\033[0;0m\nYour information:\n"
@@ -56,7 +57,7 @@ _ak_config_publish(){
}
_ak_config_published(){
- ak-ipfs-cat $(ak-node-info ipfs) | jq -c
+ _ak_ipfs_cat $(ak-node-info ipfs) | jq -c
}
if [ ! -z $1 ]; then