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