diff --git a/12345.sh b/12345.sh index c9099aff..0f8d5d5e 100755 --- a/12345.sh +++ b/12345.sh @@ -433,6 +433,7 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh ## 302 REDIRECT $TWIP cat ~/.zen/Astroport.ONE/templates/index.302 >> ~/.zen/tmp/coucou/${MOATS}.index.redirect sed -i "s~_TWLINK_~http://$TWIP:8080/ipns/${ASTRONAUTENS}~g" ~/.zen/tmp/coucou/${MOATS}.index.redirect + (cat ~/.zen/tmp/coucou/${MOATS}.index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(0‿‿0) Execution time was "`expr $(date +%s) - $start` seconds. && continue fi ## official diff --git a/20h12.process.sh b/20h12.process.sh index 64fbb89a..b545a6b8 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -8,6 +8,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" start=`date +%s` echo "20H12 (♥‿‿♥) $(hostname)" +espeak "Ding" myIP=$(hostname -I | awk '{print $1}' | head -n 1) [[ ! $myIP ]] && myIP="127.0.1.1" @@ -21,6 +22,8 @@ mkdir -p ~/.zen/tmp # echo "$USER ALL=(ALL) NOPASSWD:/bin/systemctl" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/systemctl') [[ -s /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && sleep 5 +espeak "Ding Ding" + ## PROCESS TW BACKOFFICE TREATMENT cd ~/.zen/Astroport.ONE/ git pull @@ -33,9 +36,14 @@ git pull killall 12345.sh killall nc +espeak "Ding Ding Ding" + # Refresh ~/.zen/game/players/PLAYER ~/.zen/Astroport.ONE/ASTROBOT/PLAYER.refresh.sh +espeak "Bills Kills Bills" + + ## OPEN ENTRANCE AGAIN ~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log & @@ -56,4 +64,6 @@ echo "20H12 (♥‿‿♥) Execution time was "`expr $end - $start` seconds. ## MAIL LOG : support@qo-op.com $MY_PATH/tools/mailjet.sh "support@qo-op.com" "/tmp/20h12.log.txt" +espeak "Byte Storm Over" + exit 0