From 69d0e924e98428fcda9a22a4c3fe050f36426bea Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 10 Aug 2021 02:30:49 +0200 Subject: [PATCH] get node G1 wallet amount --- www/boris/check_bootstrap_wallet.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/boris/check_bootstrap_wallet.sh b/www/boris/check_bootstrap_wallet.sh index c002cef..045f488 100755 --- a/www/boris/check_bootstrap_wallet.sh +++ b/www/boris/check_bootstrap_wallet.sh @@ -4,10 +4,10 @@ # Version: 0.1 # License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) ######################################################################## -G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) && [[ ! $G1PUB ]] && echo "ERREUR G1PUB. EXIT" && exit 1 - -[[ $G1PUB == "" ]] && echo "G1PUB MISSING" && exit 1 YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1 -~/.zen/astrXbian/zen/jaklis/jaklis.py balance -p $G1PUB -exit 0 +G1PUB=$(cat /home/$YOU/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) && [[ ! $G1PUB ]] && echo "ERREUR G1PUB. EXIT" && exit 1 +[[ $G1PUB == "" ]] && echo "G1PUB MISSING" && exit 1 + +/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py balance -p $G1PUB +