Selaa lähdekoodia

ipfs key length

Bob Mottram 8 vuotta sitten
vanhempi
commit
2f18dec9a3
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/freedombone-app-ipfs

+ 2
- 1
src/freedombone-app-ipfs Näytä tiedosto

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