From 16d65948257b3f9e2444e95957817fe62fda5f86 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 13 Jun 2020 13:02:13 +0200 Subject: [PATCH] time adjustments --- cron_MINUTE.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 7a3118e..3957869 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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='\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 ##################################################################