From fa1323366b961dacb40eda7e79a2c42e628c13ca Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 6 Sep 2023 00:34:38 +0200 Subject: [PATCH] REDIR --- API/UPLANET.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/API/UPLANET.sh b/API/UPLANET.sh index d3e3fcc7c..e1564e33f 100755 --- a/API/UPLANET.sh +++ b/API/UPLANET.sh @@ -106,6 +106,8 @@ EMAIL="${PLAYER,,}" # lowercase ipfs key rm ${MOATS} ### + REDIR="https://ipfs.copylaradio.com/ipns/${UMAPNS}" + ## CHECK WHAT IS EMAIL if [[ "${EMAIL}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then @@ -117,12 +119,11 @@ if [[ "${EMAIL}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then ## CHECK if TW is HERE [[ -s ~/.zen/tmp/${MOATS}/TW/${EMAIL}/index.html ]] \ - && (echo "$HTTPCORS $(cat ~/.zen/tmp/${MOATS}/TW/${EMAIL}/index.html)" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) \ + && (echo "$HTTPCORS '" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) \ && echo "TW is HERE : $EMAIL" && exit 0 else - REDIR="https://ipfs.copylaradio.com/ipns/${UMAPNS}" echo "_$LAT_$LON : ${REDIR}" (echo "$HTTPCORS '" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && exit 0