ipfs key length

This commit is contained in:
Bob Mottram 2016-08-12 10:18:28 +01:00
parent 6db6218e5a
commit 2f18dec9a3
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ IPFS_PORT=4001
IPFS_NODE_VERSION='6.2.2'
IPFS_JS_VERSION='0.14.3'
IPFS_JS_RONIN_VERSION='0.3.11'
IPFS_KEY_LENGTH=2048
function reconfigure_ipfs {
echo -n ''
@ -221,7 +222,7 @@ function install_ipfs_js {
fi
# initialise
su -c "$IPFS_PATH/jsipfs init -b 4096" - $MY_USERNAME
su -c "$IPFS_PATH/jsipfs init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
echo "IPFS could not be initialised for user $MY_USERNAME"
exit 7358