SMS RAZ
This commit is contained in:
parent
d2bd1b6c76
commit
5c0d888bac
|
@ -45,7 +45,7 @@ for tag in ./wallets/.$IPFSNODEID/TAG/*; do
|
||||||
oldtagn=$(cat ./TAG/${RR}.old/TAG_n)
|
oldtagn=$(cat ./TAG/${RR}.old/TAG_n)
|
||||||
curtagn=$(cat ./TAG/${RR}/TAG_n)
|
curtagn=$(cat ./TAG/${RR}/TAG_n)
|
||||||
oldtagchain=$(cat ./TAG/${RR}.old/TAG_chain)
|
oldtagchain=$(cat ./TAG/${RR}.old/TAG_chain)
|
||||||
curtagchain=$(cat ./TAG/${RR}/TAG_chain)
|
curtagchain=$(cat ./TAG/${RR}/TAG_chain)
|
||||||
echo "__SUB:cron_G1TAG_REFRESH.sh: ./TAG/$RR VALUE: ($oldtagn) $oldtagval ZEN -> ($curtagn) $curtagval ZEN"
|
echo "__SUB:cron_G1TAG_REFRESH.sh: ./TAG/$RR VALUE: ($oldtagn) $oldtagval ZEN -> ($curtagn) $curtagval ZEN"
|
||||||
echo "__SUB:cron_G1TAG_REFRESH.sh: $oldtagchain -> $curtagchain"
|
echo "__SUB:cron_G1TAG_REFRESH.sh: $oldtagchain -> $curtagchain"
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ for result in $(find billets/ -daystart -mtime +$vieux -type d -name "*"); do
|
||||||
PAY=$(/usr/local/bin/silkaj -p duniter-g1.p2p.legal:443 tx --amount="$virement" --output="$dest" -y)
|
PAY=$(/usr/local/bin/silkaj -p duniter-g1.p2p.legal:443 tx --amount="$virement" --output="$dest" -y)
|
||||||
|
|
||||||
if [[ ! $(echo $PAY | grep "successfully sent") ]]; then
|
if [[ ! $(echo $PAY | grep "successfully sent") ]]; then
|
||||||
echo "!!!! ERREUR: Something Wrong happened with $result"
|
echo "!!!! ERREUR: $virement Something Wrong happened with $result"
|
||||||
if [[ ! $virement ]]; then mv $result /tmp/$result; fi
|
if [[ ! $virement ]]; then mv $result /tmp/$result; fi
|
||||||
else
|
else
|
||||||
echo "Tout s'est bien passé! On supprime $result et continue avec le billet $Nbillets"
|
echo "Tout s'est bien passé! On supprime $result et continue avec le billet $Nbillets"
|
||||||
|
|
|
@ -43,6 +43,17 @@ if [[ "$MEMBERUID" == "DON" || "$MEMBERUID" == "" || "$MEMBERUID" == "$MEMBER" ]
|
||||||
if [[ "$(echo $PAY | cut -d '|' -f 1)" != "KO" && "$PAY" != "" && "$(echo $back | cut -d '|' -f 1)" != "KO" ]]; then
|
if [[ "$(echo $PAY | cut -d '|' -f 1)" != "KO" && "$PAY" != "" && "$(echo $back | cut -d '|' -f 1)" != "KO" ]]; then
|
||||||
# DESTROY FILESYSTEM AND G1sms WALLET SWARM REFERENCE
|
# DESTROY FILESYSTEM AND G1sms WALLET SWARM REFERENCE
|
||||||
if [[ "$PHONE" != "" ]]; then
|
if [[ "$PHONE" != "" ]]; then
|
||||||
|
# SEND SMS BEFORE DELETE FOLDER
|
||||||
|
mess="[G1sms+] $PAY
|
||||||
|
Portefeuille détruit!
|
||||||
|
Viré vers $MEMBER
|
||||||
|
$MEMRIB
|
||||||
|
|
||||||
|
Merci, à bientôt.
|
||||||
|
$ADMINPSEUDO @ $NODEUIDNA
|
||||||
|
$back"
|
||||||
|
sms_SEND "$PHONE" "$mess"
|
||||||
|
|
||||||
rm -Rf ./wallets/$PHONE;
|
rm -Rf ./wallets/$PHONE;
|
||||||
rm -Rf ./wallets_swarm/$PHONE;
|
rm -Rf ./wallets_swarm/$PHONE;
|
||||||
cents=$(echo $(bc -l <<< "scale=0; $GETLIMIT * 100") | cut -d '.' -f 1)
|
cents=$(echo $(bc -l <<< "scale=0; $GETLIMIT * 100") | cut -d '.' -f 1)
|
||||||
|
@ -60,17 +71,6 @@ if [[ "$MEMBERUID" == "DON" || "$MEMBERUID" == "" || "$MEMBERUID" == "$MEMBER" ]
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mess="[G1sms+] $PAY
|
|
||||||
Portefeuille détruit!
|
|
||||||
Viré vers $MEMBER
|
|
||||||
$MEMRIB
|
|
||||||
|
|
||||||
Merci, à bientôt.
|
|
||||||
$ADMINPSEUDO @ $NODEUIDNA
|
|
||||||
$back"
|
|
||||||
|
|
||||||
sms_SEND "$PHONE" "$mess"
|
|
||||||
|
|
||||||
# Remove contact from database
|
# Remove contact from database
|
||||||
rm_contact $MEMBERUID $PHONE && log "${c_green}Contact has been deleted from database$c_" || "${c_red}Contact can't be deleted database$c_"
|
rm_contact $MEMBERUID $PHONE && log "${c_green}Contact has been deleted from database$c_" || "${c_red}Contact can't be deleted database$c_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue