diff --git a/20h12.process.sh b/20h12.process.sh index 80d66cc6..8d4db63a 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -19,7 +19,7 @@ mv ~/.zen/coucou ~/.zen/tmp/coucou ## IPFS DAEMON STATUS LOWMODE=$(sudo systemctl status ipfs | grep disabled) ## IPFS DISABLED - START ONLY FOR SYNC - -[[ $LOWMODE == "" ]] && LOWMODE=$(ipfs --timeout 10s swarm peers 2>&1 | grep Error) ## IPFS IS STOPPED +[[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]] && LOWMODE="NO 5001" ## IPFS IS STOPPED [[ ! $isLAN ]] && LOWMODE="" ## LOWMODE ONLY FOR LAN STATION # echo "$USER ALL=(ALL) NOPASSWD:/bin/systemctl" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/systemctl') sudo systemctl restart ipfs && sleep 10 diff --git a/tools/PAY4SURE.sh b/tools/PAY4SURE.sh index fb0bacad..c59aebd5 100755 --- a/tools/PAY4SURE.sh +++ b/tools/PAY4SURE.sh @@ -96,7 +96,7 @@ if [[ $? == 0 || $(echo "${CHK2}" | grep 'succès') || $(echo "${CHK1}" | grep ZENCUR=$(echo "$COINS * 10" | bc | cut -d '.' -f 1) ZENDES=$(echo "$DES * 10" | bc | cut -d '.' -f 1) - echo "