debug YOU missing
This commit is contained in:
parent
87d73c119b
commit
65f541b13b
|
@ -7,6 +7,8 @@
|
|||
echo "AIDE pour ($1=phone)"
|
||||
phone="$1"
|
||||
phonehash=$(echo $phone | sha256sum | cut -d ' ' -f1)
|
||||
|
||||
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || echo "ipfs daemon not running" && exit 1
|
||||
SMSADMIN="$(cat /home/${YOU}/.zen/SMSADMIN)"
|
||||
|
||||
guilde=""
|
||||
|
@ -14,9 +16,7 @@ for guildes in /home/${YOU}/.zen/SMS/PHONE/${phonehash}/GUILDES/*; do
|
|||
guilde="$(echo "$guildes" | cut -d '/' -f 9);$guilde"
|
||||
done; echo "$guilde"
|
||||
|
||||
MESS="MadeInZion
|
||||
Vos guildes : $guilde
|
||||
Organisateur : $SMSADMIN"
|
||||
MESS="MadeInZion - Vos guildes : $guilde - GUIDE : $SMSADMIN"
|
||||
|
||||
echo "#!/bin/bash
|
||||
sudo gammu sendsms TEXT \"$phone\" -text \"$MESS\"" > /home/${YOU}/.zen/SMS/PHONE/${phonehash}/$(date -u +%s%N | cut -b1-13).tosend.sh
|
||||
|
|
Loading…
Reference in New Issue