This commit is contained in:
luk.lu
2022-12-26 17:56:32 +08:00
parent 3e513801bd
commit 45edb0c583
14 changed files with 80 additions and 77 deletions

View File

@@ -1,5 +1,22 @@
curl https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-amd64.tar.gz -o kubo.tgz
defaultVERSION=0.17.0
if [ $1 ]
then
VERSION=$1
else
echo "=== Enter kubo <VERSION> or <leave blank> for default $defaultVERSION"
read -p ">>> " VERSION
if [ ! $VERSION ]
then
VERSION=$defaultVERSION
echo Use default version $defaultVERSION
fi
fi
curl https://dist.ipfs.tech/kubo/v0.16.0/kubo_$VERSION_linux-amd64.tar.gz -o kubo.tgz
tar xzf kubo.tgz
## install ./kubo/ipfs to /usr/local/bin/ipfs
cd kubo && sudo bash install.sh
# echo "alias ipfs=`pwd`/kubo/ipfs" >> ~/.bashrc_custom
# alias ipfs=`pwd`/kubo/ipfs
# alias ipfs=`pwd`/kubo/ipfs