This commit is contained in:
fred 2024-01-12 21:04:18 +01:00
parent b0dd4fa377
commit c460c37921
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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 "<html><h1>EN OPERATION</h1>
echo "<html><h1>ZEN OPERATION</h1>
<h3>${PAYOUTPUB}
<br> ${ZENCUR} - ${ZENAMOUNT} </h3>
<h3>${G1PUB}

View File

@ -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": "<h1>Bro</h1><h3>You have a <br><a href=\"'$(myIpfsGw)'/ipfs/'${EMAILZ}'\">'${title-MESSAGE}'</a>!</h3> on UPlanet<br />May the good vibes be with you!<br>'${MESSAGESIGN}'"
"HTMLPart": "<h1>Bro</h1><h3>You have a <br><a href=\"'$(myIpfsGw)'/ipfs/'${EMAILZ}'\">'${title}'</a>!</h3> on UPlanet<br />May the good vibes be with you!<br>'${MESSAGESIGN}'"
}
]
}'