ipfs key length
This commit is contained in:
parent
6db6218e5a
commit
2f18dec9a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue