2021-08-10 02:06:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
########################################################################
|
|
|
|
# Author: Astrocrew
|
|
|
|
# Version: 0.1
|
|
|
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
|
|
########################################################################
|
2021-08-10 02:30:49 +02:00
|
|
|
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
|
2021-08-10 02:49:52 +02:00
|
|
|
G1PUB=$(cat /home/$YOU/.zen/ipfs/.*/G1SSB/_g1.pubkey)
|
2021-08-10 02:46:03 +02:00
|
|
|
[[ $G1PUB == "" ]] && echo "$IPFSNODEID MISSING $G1PUB" && exit 1
|
2021-08-10 02:06:59 +02:00
|
|
|
|
2021-08-10 02:30:49 +02:00
|
|
|
/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py balance -p $G1PUB
|
|
|
|
|