SMS RAZ
This commit is contained in:
parent
ff57c9c81d
commit
d5d37f03a9
|
@ -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)
|
||||
|
||||
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
|
||||
else
|
||||
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
|
||||
# DESTROY FILESYSTEM AND G1sms WALLET SWARM REFERENCE
|
||||
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_swarm/$PHONE;
|
||||
cents=$(echo $(bc -l <<< "scale=0; $GETLIMIT * 100") | cut -d '.' -f 1)
|
||||
|
@ -60,17 +71,6 @@ if [[ "$MEMBERUID" == "DON" || "$MEMBERUID" == "" || "$MEMBERUID" == "$MEMBER" ]
|
|||
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
|
||||
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