From c460c3792115f9228356606530f6c3905f3f61ac Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 12 Jan 2024 21:04:18 +0100 Subject: [PATCH] MESSAGE --- 20h12.process.sh | 2 +- tools/PAY4SURE.sh | 2 +- tools/mailjet.sh | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/20h12.process.sh b/20h12.process.sh index 80d66cc6..8d4db63a 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -19,7 +19,7 @@ mv ~/.zen/coucou ~/.zen/tmp/coucou ## IPFS DAEMON STATUS LOWMODE=$(sudo systemctl status ipfs | grep disabled) ## IPFS DISABLED - START ONLY FOR SYNC - -[[ $LOWMODE == "" ]] && LOWMODE=$(ipfs --timeout 10s swarm peers 2>&1 | grep Error) ## IPFS IS STOPPED +[[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]] && LOWMODE="NO 5001" ## IPFS IS STOPPED [[ ! $isLAN ]] && LOWMODE="" ## LOWMODE ONLY FOR LAN STATION # echo "$USER ALL=(ALL) NOPASSWD:/bin/systemctl" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/systemctl') sudo systemctl restart ipfs && sleep 10 diff --git a/tools/PAY4SURE.sh b/tools/PAY4SURE.sh index fb0bacad..c59aebd5 100755 --- a/tools/PAY4SURE.sh +++ b/tools/PAY4SURE.sh @@ -96,7 +96,7 @@ if [[ $? == 0 || $(echo "${CHK2}" | grep 'succès') || $(echo "${CHK1}" | grep ZENCUR=$(echo "$COINS * 10" | bc | cut -d '.' -f 1) ZENDES=$(echo "$DES * 10" | bc | cut -d '.' -f 1) - echo "

ẐEN OPERATION

+ echo "

ZEN OPERATION

${PAYOUTPUB}
${ZENCUR} - ${ZENAMOUNT}

${G1PUB} diff --git a/tools/mailjet.sh b/tools/mailjet.sh index cf1dfd71..96f43a6e 100755 --- a/tools/mailjet.sh +++ b/tools/mailjet.sh @@ -73,6 +73,8 @@ echo "/ipfs/${EMAILZ}" export TEXTPART="$(myIpfsGw)/ipfs/${EMAILZ}" +[[ $title == "" ]] && title="MESSAGE" + json_payload='{ "Messages": [ { @@ -94,7 +96,7 @@ json_payload='{ ], "Subject": "'${SUBJECT}'", "TextPart": "'$(myIpfsGw)/ipfs/${EMAILZ}'", - "HTMLPart": "

Bro

You have a
'${title-MESSAGE}'!

on UPlanet
May the good vibes be with you!
'${MESSAGESIGN}'" + "HTMLPart": "

Bro

You have a
'${title}'!

on UPlanet
May the good vibes be with you!
'${MESSAGESIGN}'" } ] }'