This commit is contained in:
fred 2024-01-07 00:27:48 +01:00
parent 6d497ef1d4
commit 0fbe606cbf
2 changed files with 2 additions and 2 deletions

View File

@ -109,6 +109,6 @@ echo "IPFS LOW MODE ?"
&& echo "ON. $LOWMODE" \
&& sleep 360 \
&& sudo systemctl stop ipfs \
|| { echo "OFF. RESTART IPFS" && sudo systemctl restart ipfs; }
|| { echo "OFF. RESTART IPFS" && sleep 360 && sudo systemctl restart ipfs; }
exit 0

View File

@ -324,7 +324,7 @@ for PLAYER in ${PLAYERONE[@]}; do
&& SBIRTH=$(${MY_PATH}/../tools/MOATS2seconds.sh ${BIRTHDATE}) \
&& SNOW=$(${MY_PATH}/../tools/MOATS2seconds.sh ${MOATS}) \
&& [[ $(( SNOW - SBIRTH )) -gt $(( 27 * 24 * 60 * 60 )) ]] \
&& echo "<html><body><h1>WARNNG.</h1> Your TW will be UNPLUGGED in 3 days : " > ~/.zen/tmp/alert \
&& echo "<html><body><h1>WARNING.</h1> Publish or your TW will be UNPLUGGED from Astroport and stop being published..." > ~/.zen/tmp/alert \
&& echo "<a href=$(myIpfsGw)/ipfs/${CURCHAIN}> ${PLAYER} TW </a></body></html>" >> ~/.zen/tmp/alert \
&& ${MY_PATH}/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/alert \
&& [[ $(( SNOW - SBIRTH )) > $(( 30 * 24 * 60 * 60 )) ]] \