Bob Mottram 8 vuotta sitten
vanhempi
commit
6db6218e5a
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/zeronetavahi

+ 2
- 1
src/zeronetavahi Näytä tiedosto

@@ -52,6 +52,7 @@ ZERONET_INDEX=$ZERONET_INSTALL/mesh.html
52 52
 ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap
53 53
 
54 54
 IPFS_PORT=4001
55
+IPFS_COMMAND=/usr/local/bin/jsipfs
55 56
 
56 57
 MY_BLOG_STR=$"My Blog"
57 58
 MY_MAIL_STR=$"My Mail"
@@ -91,7 +92,7 @@ function ipfs_bootstrap {
91 92
         if [ ${state} -eq "3" ]; then
92 93
             if [[ $line == *"txt ="* ]]; then
93 94
                 ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}' | awk -F '"' '{print $2}')
94
-                ipfs bootstrap add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
95
+                $IPFS_COMMAND bootstrap add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
95 96
                 state=0
96 97
             fi
97 98
         fi