time adjustments

This commit is contained in:
qo-op 2020-06-13 13:02:13 +02:00
parent dab8abde99
commit 16d6594825
1 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ ME="${0##*/}"
export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running"
source /home/$YOU/.profile
export IPFSNODEID=$(ipfs id -f='<id>\n') || er+=" ipfs id problem"
export WHOAMI=$($MY_PATH/zen/tools/timeout.sh -t 3 sbotc whoami | jq -r .id)
export WHOAMI=$($MY_PATH/zen/tools/timeout.sh -t 5 sbotc whoami | jq -r .id)
if [[ "$WHOAMI" == "" ]]; then
### oasis ssb-server not responding!!!
@ -261,8 +261,9 @@ HTTP API forwarding to http://127.0.0.1:10099
ipfs p2p listen /x/g1pub-ssh /ip4/127.0.0.1/tcp/22 # CLOSE WITH ipfs p2p close /x/g1pub-ssh
ipfs p2p listen /x/g1pub-http /ip4/127.0.0.1/tcp/80
fi
echo "G1smsPub FORWARD: ipfs p2p forward /x/g1pub-ssh /ip4/127.0.0.1/tcp/2021 /p2p/QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" >> /tmp/A_P2Pforward
echo "G1smsPub FORWARD: ipfs p2p forward /x/g1pub-http /ip4/127.0.0.1/tcp/8021 /p2p/QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" >> /tmp/A_P2Pforward
# INDICATE OPENED PORTS to OTHER STATIONS
echo "ipfs p2p forward /x/g1pub-ssh /ip4/127.0.0.1/tcp/2021 /p2p/QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" >> /tmp/A_P2Pforward
echo "ipfs p2p forward /x/g1pub-http /ip4/127.0.0.1/tcp/8021 /p2p/QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" >> /tmp/A_P2Pforward
./zen/ipfs_OPEN_ports.sh
ipfs p2p ls
##################################################################