From de515799c4ba48383b3d71241ab7a113ab715994 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 6 Jun 2020 03:54:36 +0200 Subject: [PATCH] source /home/$YOU/.profile --- cron_MINUTE.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index d9eb508..5d70ac6 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -15,12 +15,13 @@ ME="${0##*/}" #### export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running" +source /home/$YOU/.profile export IPFSNODEID=$(ipfs id -f='\n') || er+=" ipfs id problem" export WHOAMI=$($MY_PATH/zen/tools/timeout.sh -t 3 sbotc whoami | jq -r .id) if [[ "$WHOAMI" == "" ]]; then ### oasis ssb-server not responding!!! - [[ ! $(which ssb-server) ]] && echo "sboc/SSB-SERVER IMPOSSIBLE..." && exit 1 + [[ ! $(whereis ssb-server) ]] && echo "sboc/SSB-SERVER IMPOSSIBLE..." && exit 1 kill -9 $(ps auxf --sort=+utime | grep -w 'ssb-server' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}') kill -9 $(ps auxf --sort=+utime | grep -w 'oasis' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}') ssb-server start &