aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-15 20:37:56 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-15 20:37:56 +0300
commit389cf355eb2344b4d5246a2e5c4b2ac31fec7f1b (patch)
tree8603bfbb0b59c7aa612d96744c224c476b91e1bb
parent0ce8b434e264b0fca5bb900ba57701ee05216170 (diff)
downloadarching-kaos-tools-389cf355eb2344b4d5246a2e5c4b2ac31fec7f1b.tar.gz
arching-kaos-tools-389cf355eb2344b4d5246a2e5c4b2ac31fec7f1b.tar.bz2
arching-kaos-tools-389cf355eb2344b4d5246a2e5c4b2ac31fec7f1b.zip
Clearly trying to figure out things :)
-rwxr-xr-xipfs-check-install-setup-init-update9
1 files changed, 6 insertions, 3 deletions
diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update
index 2d9c95e..3e8dfdf 100755
--- a/ipfs-check-install-setup-init-update
+++ b/ipfs-check-install-setup-init-update
@@ -9,8 +9,7 @@ install(){
IPFS_TARGET_FILE="kubo_"$IPFS_VERSION"_linux-amd64.tar.gz"
AKBIN="$AK_WORKDIR/bin"
mkdir $AKBIN
- AKAR="$ARCHIVESDIR"
- mkdir $AKAR
+ AKAR="$AK_ARCHIVESDIR"
if [ ! -d $AKAR ]; then
mkdir $AKAR
if [ $? != 0 ]; then
@@ -36,6 +35,8 @@ install(){
mkdir $HOME/.ipfs
$AKBIN/ipfs init ;
fi
+}
+swarm_install() {
if [ ! -f $HOME/.ipfs/swarm.key ]; then
wget -O $HOME/.ipfs/swarm.key https://arching-kaos.net/files/swarm.key ;
elif [ "$(sha512sum $HOME/.ipfs/swarm.key | awk '{ print $1 }')" == "$SWARMSHA512SUM" ]; then
@@ -49,5 +50,7 @@ which ipfs > /dev/null 2>&1
if [ $? != 0 ]; then
install
ipfs init
-else logthis "[INFO]" "Found IPFS! Skipping downloading..."
+else
+ logthis "[INFO]" "Found IPFS! Skipping downloading..."
+ swarm_install
fi