From e0fb2274df410206455615b774cbf1dacaccd6d2 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 22 Feb 2021 02:51:47 +0100 Subject: [PATCH] better PIN --- zen/gchange_INIT.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/gchange_INIT.sh b/zen/gchange_INIT.sh index d9b43b9..c60edaa 100755 --- a/zen/gchange_INIT.sh +++ b/zen/gchange_INIT.sh @@ -112,8 +112,8 @@ do if [[ ! -d ~/.zen/ipfs/.${IPFSNODEID}/PIN/${astrofile} && "${astrofile}" != "" ]]; then echo "TRYING TO PIN : $astrofile" - ipfs ls ${astrofile} && ipfs pin add /ipfs/$astrofile && mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/PIN/${astrofile}/ && echo "PUBLISHING MY PIN" || continue - [[ -d ~/.zen/ipfs/.${IPFSNODEID}/PIN/${astrofile} ]] && echo "0" > ~/.zen/ipfs/.${IPFSNODEID}/PIN/${astrofile}/$G1PUB && break + ~/.zen/astrXbian/zen/tools/timeout.sh -t 5 ipfs ls ${ipfsfile} && ipfs pin add /ipfs/${ipfsfile} && mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/PIN/${ipfsfile}/ && echo "PUBLISHING MY PIN" || continue + [[ -d ~/.zen/ipfs/.${IPFSNODEID}/PIN/${ipfsfile} ]] && echo "0" > ~/.zen/ipfs/.${IPFSNODEID}/PIN/${ipfsfile}/$G1PUB && break fi done fi