Activation SMS BIODYN 5h30
This commit is contained in:
parent
5e918a4eff
commit
bb870496ce
|
@ -22,8 +22,8 @@ source $HOME/.profile
|
||||||
IPFSNODEID=$(ipfs --timeout=10s id -f='<id>\n')
|
IPFSNODEID=$(ipfs --timeout=10s id -f='<id>\n')
|
||||||
[[ ! $IPFSNODEID ]] && echo "IPFS NOT RUNNING" && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 1
|
[[ ! $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)
|
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
if [[ ! $isIPFSRunning ]]; then
|
if [[ ! ${YOU} ]]; then
|
||||||
[[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs
|
[[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs
|
||||||
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -122,7 +122,9 @@ echo "RUNTIME $runtime mn ($timebar)"
|
||||||
# ACTIVATE 15-17 MN "git pull" update
|
# ACTIVATE 15-17 MN "git pull" update
|
||||||
if [[ $(($minute % 15)) == 0 ]]; then
|
if [[ $(($minute % 15)) == 0 ]]; then
|
||||||
########## SMS GUILDE STATION ##############
|
########## SMS GUILDE STATION ##############
|
||||||
[[ -d ~/.zen/SMS/ ]] && /home/pi/workspace/bio-dynamie/sms_send_tosend.sh
|
[[ -d ~/.zen/SMS/ && "$timebar" == "05:30" ]] && /home/${YOU}/workspace/bio-dynamie/sms/_BIODYN.sh ## PREPARE BIODYN SMS
|
||||||
|
[[ -d ~/.zen/SMS/ ]] && /home/${YOU}/workspace/bio-dynamie/sms_send_tosend.sh
|
||||||
|
########## SMS GUILDE STATION ##############
|
||||||
|
|
||||||
########## DESYNCH SWARM NODE REQUESTS #################
|
########## DESYNCH SWARM NODE REQUESTS #################
|
||||||
sleep $((1 + RANDOM % 120))
|
sleep $((1 + RANDOM % 120))
|
||||||
|
|
Loading…
Reference in New Issue