aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-24 23:17:15 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-24 23:17:15 +0200
commit16ef6e4c03e1c69afd9419888f475fe5fb16e9b7 (patch)
tree4d2ff6f62621afbff172c7f40ed980b8d682d9ce /ipfs-check-install-setup-init-update
parent88adb6f4bd9b3a1ce01ce05317b8aee1a8301ff3 (diff)
downloadarching-kaos-tools-16ef6e4c03e1c69afd9419888f475fe5fb16e9b7.tar.gz
arching-kaos-tools-16ef6e4c03e1c69afd9419888f475fe5fb16e9b7.tar.bz2
arching-kaos-tools-16ef6e4c03e1c69afd9419888f475fe5fb16e9b7.zip
Changes and fixes
- fix binpath and make directories - changed logging - fix copy to binpath
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-xipfs-check-install-setup-init-update8
1 files changed, 5 insertions, 3 deletions
diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update
index 4509ca5..bc8e63b 100755
--- a/ipfs-check-install-setup-init-update
+++ b/ipfs-check-install-setup-init-update
@@ -7,15 +7,17 @@
# or whatever...
logthis(){
- logger -t arching-kaos $1
+ echo "IPFS TOOL: $1" >> $WORKDIR/logs
}
install(){
logthis "ipfs-check-install-setup-init"
IPFS_VERSION="$(curl https://github.com/ipfs/go-ipfs/releases/latest | sed -e 's/.*releases//g' | sed -e 's/".*//' | sed -e 's/\/tag\///')"
SWARMSHA512SUM="7001e37412758c43d372a969e977ca11511e034c8c1e233a58dc3ce1c6f3c1aa7d2da8cba9944a5eabaa8885742bfe6cc6794224c146b7129da8f633b53b9cfc"
IPFS_TARGET_FILE="go-ipfs_"$IPFS_VERSION"_linux-amd64.tar.gz"
- AKBIN="$BINDIR"
+ AKBIN="$WORKDIR/bin"
+ mkdir $AKBIN
AKAR="$ARCHIVESDIR"
+ mkdir $AKAR
if [ ! -d $AKAR ]; then
mkdir $AKAR
if [ $? != 0 ]; then
@@ -34,7 +36,7 @@ install(){
mkdir $TEMPASSIN
cd $TEMPASSIN
tar xf $AKAR/$IPFS_TARGET_FILE
- cp go-ipfs/ipfs $AKBIN
+ cp go-ipfs/ipfs $AKBIN/ipfs
fi
logthis "ipfs installed on $AKBIN"
if [ ! -d $HOME/.ipfs ]; then