From b68cfb97905628e60f23c430b253e5c69eeaa3f9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 15 Apr 2023 20:40:53 +0300 Subject: Install script is broken --- api/config.js | 3 +-- ipfs-check-install-setup-init-update | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/config.js b/api/config.js index 84a85b1..088ce07 100644 --- a/api/config.js +++ b/api/config.js @@ -1,5 +1,4 @@ -const process = require("process"); -const env = process.env; +const { env } = require("process"); const config = { port : 8610, diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update index 3e8dfdf..13f2961 100755 --- a/ipfs-check-install-setup-init-update +++ b/ipfs-check-install-setup-init-update @@ -38,6 +38,7 @@ install(){ } swarm_install() { if [ ! -f $HOME/.ipfs/swarm.key ]; then + logthis "[INFO]" "Downloading swarm key" wget -O $HOME/.ipfs/swarm.key https://arching-kaos.net/files/swarm.key ; elif [ "$(sha512sum $HOME/.ipfs/swarm.key | awk '{ print $1 }')" == "$SWARMSHA512SUM" ]; then logthis "[INFO]" "Congrats! You are already in our swarm" ; -- cgit v1.2.3