astrXbian/www/boris/check_entrance.sh

14 lines
637 B
Bash
Raw Normal View History

2021-08-09 22:36:25 +02:00
#!/bin/bash
########################################################################
# Author: Astrocrew
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
G1KEY="$1"
[[ $G1KEY == "" ]] && echo "PUB KEY MISSINF" && 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
## CHECK IF NODE HAS SEND A PAYMENT TO $G1KEY (TODO CHECK ALL BOOTSTRAPS)
~/.zen/astrXbian/zen/jaklis/jaklis.py history -p $G1KEY | grep $G1KEY