diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 18199a4..71e52c4 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -23,7 +23,7 @@ source $HOME/.profile ## 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) if [[ ! $isIPFSRunning ]]; then - [[ -f /etc/sudoers.d/systemctl && -f ~/.zen/ipfs/.$IPFSNODEID/.switch ]] && sudo systemctl restart ipfs + [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs echo "ERROR! ipfs daemon was not running. RELAUNCHING." exit 1 fi