From e40d1eb7666c9a71c6b68c6cc1a123c314efa27d Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 1 Dec 2021 01:54:54 +0100 Subject: [PATCH] ipfs id timeout --- zen/new_file_in_astroport.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 509a5e3..12e9a8c 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -15,7 +15,8 @@ countMErunning=$(ps auxf --sort=+utime | grep -w $ME | grep -v -E 'color=auto|gr start=`date +%s` YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1); -IPFSNODEID=$(ipfs id -f='\n') +IPFSNODEID=$(ipfs --timeout=20s id -f='\n') +[[ ! $IPFSNODEID ]] && echo 'ERROR missing IPFS Node id !! IPFS is not responding !?' && exit 1 G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) # ~/.zen/ipfs/.${IPFSNODEID}/astroport/kodi/vstream/${PREFIX}ASTRXBIAN # Astropot/Kodi/Vstream source reads ${PREFIX}ASTRXBIAN from http://127.0.0.1:8181/.$IPFNODEID/