aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:59:51 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:59:51 +0300
commitf3e77a4ff03b54e0b2db2a46e9eb3ad345a0b0c4 (patch)
treec095d8a3b9218bc5e4ce2d8c198cfb0d72a85b8d /ipfs-check-install-setup-init-update
parent8240bd9106a4c3a019a70340b7709a13a9e7e8f4 (diff)
downloadarching-kaos-tools-f3e77a4ff03b54e0b2db2a46e9eb3ad345a0b0c4.tar.gz
arching-kaos-tools-f3e77a4ff03b54e0b2db2a46e9eb3ad345a0b0c4.tar.bz2
arching-kaos-tools-f3e77a4ff03b54e0b2db2a46e9eb3ad345a0b0c4.zip
Fixed a bug where ZGENESIS pointer file wasn't created
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-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