aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xipfs-check-install-setup-init-update6
1 files changed, 5 insertions, 1 deletions
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