espeak "Ding"

This commit is contained in:
fred 2022-11-15 17:23:23 +01:00
parent 37d86410ec
commit dfd4395d6d
2 changed files with 11 additions and 0 deletions

View File

@ -433,6 +433,7 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
## 302 REDIRECT $TWIP ## 302 REDIRECT $TWIP
cat ~/.zen/Astroport.ONE/templates/index.302 >> ~/.zen/tmp/coucou/${MOATS}.index.redirect 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 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 (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 fi ## official

View File

@ -8,6 +8,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}" ME="${0##*/}"
start=`date +%s` start=`date +%s`
echo "20H12 (♥‿‿♥) $(hostname)" echo "20H12 (♥‿‿♥) $(hostname)"
espeak "Ding"
myIP=$(hostname -I | awk '{print $1}' | head -n 1) myIP=$(hostname -I | awk '{print $1}' | head -n 1)
[[ ! $myIP ]] && myIP="127.0.1.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') # 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 [[ -s /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && sleep 5
espeak "Ding Ding"
## PROCESS TW BACKOFFICE TREATMENT ## PROCESS TW BACKOFFICE TREATMENT
cd ~/.zen/Astroport.ONE/ cd ~/.zen/Astroport.ONE/
git pull git pull
@ -33,9 +36,14 @@ git pull
killall 12345.sh killall 12345.sh
killall nc killall nc
espeak "Ding Ding Ding"
# Refresh ~/.zen/game/players/PLAYER # Refresh ~/.zen/game/players/PLAYER
~/.zen/Astroport.ONE/ASTROBOT/PLAYER.refresh.sh ~/.zen/Astroport.ONE/ASTROBOT/PLAYER.refresh.sh
espeak "Bills Kills Bills"
## OPEN ENTRANCE AGAIN ## OPEN ENTRANCE AGAIN
~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log & ~/.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 ## MAIL LOG : support@qo-op.com
$MY_PATH/tools/mailjet.sh "support@qo-op.com" "/tmp/20h12.log.txt" $MY_PATH/tools/mailjet.sh "support@qo-op.com" "/tmp/20h12.log.txt"
espeak "Byte Storm Over"
exit 0 exit 0