aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-11 10:15:14 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-11 10:15:14 +0200
commit5b6c322d0bb8a131aa947b135a731a3f88e50c2d (patch)
tree0fdf636cbc55a67314f50d1ed03c462dfc7768e9
parentc353ce52726914602b27a80950138ce56c28047d (diff)
downloadarching-kaos-tools-5b6c322d0bb8a131aa947b135a731a3f88e50c2d.tar.gz
arching-kaos-tools-5b6c322d0bb8a131aa947b135a731a3f88e50c2d.tar.bz2
arching-kaos-tools-5b6c322d0bb8a131aa947b135a731a3f88e50c2d.zip
IPFS check tool for debugging IPFS
-rwxr-xr-xbin/ipfs-check17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/ipfs-check b/bin/ipfs-check
new file mode 100755
index 0000000..de1b133
--- /dev/null
+++ b/bin/ipfs-check
@@ -0,0 +1,17 @@
+#!/bin/bash
+logit(){
+ logthis "ipfs-check" $1
+}
+
+
+ipfs files ls /zarchive
+if [ $? != 0 ]; then logit "/zarchive is missing" ; fi
+
+ipfs files ls /zlatest
+if [ $? != 0 ]; then logit "/zlatest is missing" ; fi
+
+ipfs key list | zchain
+if [ $? != 0 ]; then logit "zchain key is missing" ; fi
+
+ipfs key list | ak-config
+if [ $? != 0 ]; then logit "ak-config key is missing" ; fi