debug
This commit is contained in:
parent
d7dfc6f258
commit
02bbf9ca42
@ -185,7 +185,7 @@ if [[ $SCORE -ge 4 || ${phone} == $SMSADMIN ]]; then
|
||||
mkdir -p /home/${YOU}/.zen/SMS/GUILDES/${guilde}/OUTPUT/
|
||||
|
||||
## PREPARATION DU MESSAGE POUR LA GUILDE (cut for long messages)
|
||||
[[ ${message} != "${guilde}" && ${message} != "" ]] && echo "[${guilde}] ${message}" > /tmp/sms && ${MYPATH}/_BIODYN.sh "${guilde}" ## BUG CAN MAKE COLISION ;)
|
||||
[[ ${message} != "${guilde}" && ${message} != "" ]] && echo "[${guilde}] ${message}" > /tmp/sms && ${MY_PATH}/_BIODYN.sh "${guilde}" ## BUG CAN MAKE COLISION ;)
|
||||
# echo "#!/bin/bash
|
||||
#sudo gammu sendsms TEXT \"_PHONE_\" -text \"[${guilde}] ${message}\"" > /home/${YOU}/.zen/SMS/GUILDES/${guilde}/OUTPUT/$(date -u +%s%N | cut -b1-13).tosend.sh && chmod +x /home/${YOU}/.zen/SMS/GUILDES/${guilde}/OUTPUT/*.tosend.sh
|
||||
|
||||
|
@ -17,7 +17,7 @@ G1PUB=$(cat /home/${YOU}/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||
GUILDE="$1"
|
||||
|
||||
# PROCESS /tmp/sms to GUILDE cut in piece SMS
|
||||
[[ "$1" == "" ]] && ${MYPATH}/scrapers/org.bio-dynamie.sh && GUILDE="BIODYN" ## DEFAULT GUILDE BIODYN
|
||||
[[ "$1" == "" ]] && ${MY_PATH}/scrapers/org.bio-dynamie.sh && GUILDE="BIODYN" ## DEFAULT GUILDE BIODYN
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "#!/bin/bash
|
||||
sudo gammu sendsms TEXT \"_PHONE_\" -text \"Site Web https://bio-dynamie.org inaccessible ce matin \"" > /home/${YOU}/.zen/SMS/GUILDES/${GUILDE}/OUTPUT/$(date -u +%s%N | cut -b1-13).tosend.sh
|
||||
|
Loading…
Reference in New Issue
Block a user