From b884eac5c8b3742924ca29658ec2c9e1f2e1c972 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 10:33:18 +0200 Subject: Fixing possible problems related to IPFS keys --- bin/ipfs-check | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/bin/ipfs-check b/bin/ipfs-check index 8f5f99a..509593a 100755 --- a/bin/ipfs-check +++ b/bin/ipfs-check @@ -11,7 +11,23 @@ ipfs files ls /zlatest if [ $? != 0 ]; then logit "/zlatest is missing" ; fi ipfs key list | grep zchain -if [ $? != 0 ]; then logit "zchain key is missing" ; fi +if [ $? != 0 ]; then + logit "zchain key is missing" + ipfs key gen zchain > $ZCHAIN + if [ $? != 0 ]; then + logit "zchain fails to create" + else + logit "zchain created" + fi +fi -ipfs key list | grep ak-config -if [ $? != 0 ]; then logit "ak-config key is missing" ; fi +ipfs key list | grep ak-config +if [ $? != 0 ]; then + logit "ak-config key is missing" + ipfs key gen ak-config + if [ $? != 0 ]; then + logit "ak-config fails to create" + else + logit "ak-config created" + fi +fi -- cgit v1.2.3