fix grep -v to detect ipfs isntall

This commit is contained in:
poka 2019-12-06 15:22:11 +00:00
parent 8285ccc858
commit 8f7d89d562
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if [ "$EUID" -eq 0 ]
fi
echo "Ce script configure votre noeud G1sms+"
IPFS=$(ps auxf --sort=+utime | grep -w ipfs | grep -v "color=auto" | tail -n 1 | cut -d " " -f 1);
IPFS=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
[[ -z $IPFS ]] && $MY_PATH/.install/install_requirements.sh && $MY_PATH/.install/configure_ipfs_layer.sh