Don't need the ipfs identity
This commit is contained in:
parent
d5ba1eb946
commit
1471438ae0
|
@ -10361,17 +10361,6 @@ function install_ipfs {
|
||||||
exit 7358
|
exit 7358
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IPFS_IDENTITY=$($IPFS_PATH/ipfs refs local | tail -n 1 | tr '\n' ' ' | tr -d '[[:space:]]')
|
|
||||||
if [ ${#IPFS_IDENTITY} -lt 10 ]; then
|
|
||||||
echo 'IPFS identity shorter than expected'
|
|
||||||
echo "$IPFS_IDENTITY"
|
|
||||||
exit 82652
|
|
||||||
fi
|
|
||||||
if [[ $IPFS_IDENTITY == *" "* ]]; then
|
|
||||||
echo 'IPFS identity contains spaces'
|
|
||||||
exit 72585
|
|
||||||
fi
|
|
||||||
|
|
||||||
# directories to mount to
|
# directories to mount to
|
||||||
if [ ! -d /ipfs ]; then
|
if [ ! -d /ipfs ]; then
|
||||||
mkdir /ipfs
|
mkdir /ipfs
|
||||||
|
@ -10408,17 +10397,6 @@ function install_ipfs {
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart ipfs
|
systemctl restart ipfs
|
||||||
|
|
||||||
if ! grep -q "IPFS Identity" /home/$MY_USERNAME/README; then
|
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
|
||||||
echo 'IPFS' >> /home/$MY_USERNAME/README
|
|
||||||
echo '====' >> /home/$MY_USERNAME/README
|
|
||||||
echo "IPFS Identity: $IPFS_IDENTITY" >> /home/$MY_USERNAME/README
|
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
|
||||||
chmod 600 /home/$MY_USERNAME/README
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 'install_ipfs' >> $COMPLETION_FILE
|
echo 'install_ipfs' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue