diff --git a/sms/GUILDE.sh b/sms/GUILDE.sh index b206549..a9daefe 100755 --- a/sms/GUILDE.sh +++ b/sms/GUILDE.sh @@ -20,9 +20,9 @@ echo "${phone};${groupe};${avis}" >> /home/${YOU}/.zen/SMS/received.log ######################################################################## echo "## GET STATION G1PUB" ######################################################################## +YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running" [[ ! -f /home/${YOU}/.zen/secret.dunikey ]] && echo "Crypto is missing... please provide /home/${YOU}/.zen/secret.dunikey by installing 'astrXbian' TestNet" && exit 1 G1PUB=$(cat /home/${YOU}/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) -YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running" ######################################################################## echo "## sha256sum($phone)"