File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ docker exec -it ipfs-node ipfs swarm connect /ip4/172.17.0.1/tcp/12347/ws/p2p/12
8585
8686``` shell
8787# Runs a script that reconnects every 2 seconds
88+ # Defaults to Docker; use 'local' to use the local Kubo instance
8889./scripts/ipfs-reconnect-solo.sh
8990```
9091
@@ -141,6 +142,7 @@ docker exec -it ipfs-node ipfs swarm connect /ip4/172.17.0.1/tcp/12347/ws/p2p/12
141142
142143``` shell
143144# Runs a script that reconnects every 2 seconds
145+ # Defaults to Docker; use 'local' to use the local Kubo instance
144146./scripts/ipfs-reconnect-westend.sh
145147```
146148
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Detect whether Docker exists
4- if command -v docker > /dev/null 2>&1 ; then
3+ # Choose mode based on argument
4+ mode=" ${1:- docker} "
5+ if [ " $mode " = " docker" ]; then
56 check_cmd=" docker exec ipfs-node ipfs"
67 check_host=" 172.17.0.1"
78else
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Detect whether Docker exists
4- if command -v docker > /dev/null 2>&1 ; then
3+ # Choose mode based on argument
4+ mode=" ${1:- docker} "
5+ if [ " $mode " = " docker" ]; then
56 check_cmd=" docker exec ipfs-node ipfs"
67 check_host=" 172.17.0.1"
78else
You can’t perform that action at this time.
0 commit comments