Don't need the ipfs identity

This commit is contained in:
Bob Mottram 2015-09-29 19:50:24 +01:00
parent d5ba1eb946
commit 1471438ae0
1 changed files with 0 additions and 22 deletions

View File

@ -10361,17 +10361,6 @@ function install_ipfs {
exit 7358
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
if [ ! -d /ipfs ]; then
mkdir /ipfs
@ -10408,17 +10397,6 @@ function install_ipfs {
systemctl daemon-reload
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
}