diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 84a2dae..7b438b5 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -164,7 +164,15 @@ fi if [[ $(($runtime % 15)) == 0 ]]; then ########## DESYNCH SWARM NODE REQUESTS ################# + [[ ! -d ~/.zen/Astroport.ONE ]] && cd ~/.zen && git clone https://git.p2p.legal/qo-op/Astroport.ONE.git [[ -d ~/.zen/Astroport.ONE ]] && cd ~/.zen/Astroport.ONE && sleep $((1 + RANDOM % 12)) && git pull + +######################################################################## +# RE/LAUNCHING INSTASCAN API +instascan=$(ps auxf --sort=+utime | grep -w nc | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) +[[ $instascan ]] && killall nc && killall instascan_login.sh && ~/.zen/Astroport.ONE/tools/instascan_login.sh & +[[ ! $instascan ]] && ~/.zen/Astroport.ONE/tools/instascan_login.sh & + # git reset --hard cd $MY_PATH sleep $((1 + RANDOM % 3)) && git pull