From d5f9085737874dcef201a8ddbdc0b8cb32d969b1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 07:24:40 +0200 Subject: possible fix for not installing genesis --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index cac7953..b4e35de 100755 --- a/init.sh +++ b/init.sh @@ -11,7 +11,7 @@ if [[ ! -d $DATADIR ]]; then mkdir $DATADIR ;fi if [[ ! -d $ARCHIVESDIR ]]; then mkdir $ARCHIVESDIR ;fi if [[ ! -f $LOGSFILE ]]; then touch $LOGSFILE ;fi if [[ ! -f $GENESIS ]] ; then touch $GENESIS;fi -if [[ ! -f $ZGENESIS ]] ; then echo "$(ipfs add -q $GENESIS)" > $ZGENESIS;fi +if [[ -f $ZGENESIS ]] ; then echo "$(ipfs add -q $GENESIS)" > $ZGENESIS;fi if [[ ! -f $ZCHAIN ]] ; then echo "$(ipfs key gen zchain)" > $ZCHAIN;fi if [[ ! -f $ZLATEST ]] ; then cp $ZGENESIS $ZLATEST;fi if [[ ! -f $ZCHAINASC ]] ; then gpg -bao $ZCHAINASC $ZCHAIN;fi -- cgit v1.2.3