verify ipfs is running

This commit is contained in:
qo-op 2021-03-12 00:42:27 +01:00
parent 6c49591ee3
commit 81622ae039
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ source $HOME/.profile
#### INIT STATION PARAMETERS
export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
[[ ! $YOU ]] && echo "ERREUR processus ipfs absent" && exit 1
[[ $IPFSNODEID ]] && export IPFSNODEID=$IPFSNODEID || export IPFSNODEID=$(ipfs id -f='<id>\n')
########################################################################