diff options
Diffstat (limited to 'bin/ipfs-check')
-rwxr-xr-x | bin/ipfs-check | 22 |
1 files 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 |