aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-11 07:24:40 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-11 07:24:40 +0200
commitd5f9085737874dcef201a8ddbdc0b8cb32d969b1 (patch)
tree962aaf5781fa63891c995804051ade2c3ef8a2af
parentbf634db74ecdd43263042c2a9f9a25bcb4a5d6ba (diff)
downloadarching-kaos-tools-d5f9085737874dcef201a8ddbdc0b8cb32d969b1.tar.gz
arching-kaos-tools-d5f9085737874dcef201a8ddbdc0b8cb32d969b1.tar.bz2
arching-kaos-tools-d5f9085737874dcef201a8ddbdc0b8cb32d969b1.zip
possible fix for not installing genesis
-rwxr-xr-xinit.sh2
1 files changed, 1 insertions, 1 deletions
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