forked from axiom-team/astrXbian
MAJ
This commit is contained in:
parent
81f15a501b
commit
a13890d197
|
@ -19,7 +19,8 @@ source $HOME/.profile
|
||||||
[[ ! $(echo $PATH | grep "/usr/games") ]] && export PATH="$PATH:/usr/games"
|
[[ ! $(echo $PATH | grep "/usr/games") ]] && export PATH="$PATH:/usr/games"
|
||||||
|
|
||||||
#### INIT STATION PARAMETERS
|
#### INIT STATION PARAMETERS
|
||||||
IPFSNODEID=$(ipfs --timeout=10s id -f='<id>\n') && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 1
|
IPFSNODEID=$(ipfs --timeout=10s id -f='<id>\n')
|
||||||
|
[[ ! $IPFSNODEID ]] && echo "IPFS NOT RUNNING" && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 1
|
||||||
## CONTROL IPFS IS RUNNING OR RESTART
|
## CONTROL IPFS IS RUNNING OR RESTART
|
||||||
isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
|
isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
|
||||||
if [[ ! $isIPFSRunning ]]; then
|
if [[ ! $isIPFSRunning ]]; then
|
||||||
|
|
Loading…
Reference in New Issue