save lastcheck and status to public folder
This commit is contained in:
parent
5bc9014851
commit
10acac3903
@ -23,9 +23,9 @@ source .env
|
||||
TGTEXT=$(echo Status: $TEXT%0ACode: HTTP $STATUS | sed "s/ /%20/g");echo Telegram Text: $TGTEXT
|
||||
echo ""
|
||||
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$TG_CHATID'&'text=${TGTEXT}
|
||||
echo '{"Service":"Internet Banking", "Status":"'$STATUS'", "Date":"'$DATE'", "Time":"'$TIME'"}' | tee -a status.json
|
||||
echo '{"Service":"Internet Banking", "Status":"'$STATUS'", "Date":"'$DATE'", "Time":"'$TIME'"}' | tee -a public/status.json
|
||||
fi
|
||||
fi
|
||||
echo '{"Date":"'$DATE'", "Time":"'$TIME'", "Status:"'$STATUS'"}' | tee lastcheck.json
|
||||
echo '{"Date":"'$DATE'", "Time":"'$TIME'", "Status:"'$STATUS'"}' | tee pubic/lastcheck.json
|
||||
echo Sleep:$DELAY;sleep $DELAY
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user