EVERYTHING OK

This commit is contained in:
qo-op 2020-05-03 18:17:30 +02:00
parent b48e43cf94
commit c675a5a50e
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
# CHECK if daemon is already running
[[ $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]] \
&& echo "ipfs daemon already running. EVERYTHING OK!" && ipfs id && exit 0
&& echo "ipfs daemon already running. EVERYTHING OK!" \
&& ipfs id && echo "SWARM PEERS" && ipfs swarm peers \
&& echo "BOOTSTRAP LIST" && ipfs bootstrap list && exit 0
# CHECK not root user !!
if [ "$EUID" -eq 0 ]