From f3e77a4ff03b54e0b2db2a46e9eb3ad345a0b0c4 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 20 Aug 2023 13:59:51 +0300 Subject: Fixed a bug where ZGENESIS pointer file wasn't created --- ipfs-check-install-setup-init-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipfs-check-install-setup-init-update') diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update index bdd94c9..5b50255 100755 --- a/ipfs-check-install-setup-init-update +++ b/ipfs-check-install-setup-init-update @@ -35,7 +35,6 @@ install(){ mkdir $HOME/.ipfs $AK_BINDIR/ipfs init ; fi - ipfs add -Q $AK_GENESIS > $AK_ZGENESIS } swarm_install() { @@ -63,3 +62,8 @@ if [ ! -d $HOME/.ipfs ]; then ipfs init swarm_install fi + +if [ ! -f $AK_ZGENESIS ] +then + ipfs add -Q $AK_GENESIS > $AK_ZGENESIS +fi -- cgit v1.2.3