This commit is contained in:
qo-op 2021-06-21 19:20:19 +02:00
parent 1a30152799
commit 8fbcb6d72a
1 changed files with 1 additions and 1 deletions

View File

@ -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)"