aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-18 23:05:17 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-18 23:05:17 +0300
commita51fd3cadbcc4be13dda57217fea6232aae1a182 (patch)
treeb4fff2f80cb76b48984bead3d3ffcdbbf627e63e /ipfs-check-install-setup-init-update
parent112e4f7be6c6cbdeab8543b4cc64e5b2ae25e155 (diff)
downloadarching-kaos-tools-a51fd3cadbcc4be13dda57217fea6232aae1a182.tar.gz
arching-kaos-tools-a51fd3cadbcc4be13dda57217fea6232aae1a182.tar.bz2
arching-kaos-tools-a51fd3cadbcc4be13dda57217fea6232aae1a182.zip
Added a condition where we have the IPFS binary but we haven't configured
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-xipfs-check-install-setup-init-update5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update
index ad21c6c..6317e98 100755
--- a/ipfs-check-install-setup-init-update
+++ b/ipfs-check-install-setup-init-update
@@ -59,3 +59,8 @@ else
logthis "[INFO]" "Found IPFS! Skipping downloading..."
swarm_install
fi
+if [ ! -d $HOME/.ipfs ]; then
+ mkdir $HOME/.ipfs
+ $AK_BINDIR/ipfs init ;
+ swarm_install
+fi