verify ipfs is running
This commit is contained in:
parent
6c49591ee3
commit
81622ae039
|
@ -17,6 +17,7 @@ source $HOME/.profile
|
||||||
|
|
||||||
#### INIT STATION PARAMETERS
|
#### 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)
|
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')
|
[[ $IPFSNODEID ]] && export IPFSNODEID=$IPFSNODEID || export IPFSNODEID=$(ipfs id -f='<id>\n')
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
Loading…
Reference in New Issue