forked from STI/Astroport.ONE
better timings
This commit is contained in:
parent
8503605c21
commit
ab2be9ec5c
|
@ -10,6 +10,21 @@ start=`date +%s`
|
||||||
echo "20H12 (♥‿‿♥) $(hostname -f) $(date)"
|
echo "20H12 (♥‿‿♥) $(hostname -f) $(date)"
|
||||||
espeak "Ding" > /dev/null 2>&1
|
espeak "Ding" > /dev/null 2>&1
|
||||||
|
|
||||||
|
## IPFS DAEMON STATUS
|
||||||
|
LOWMODE=$(sudo systemctl status ipfs | grep disabled) ## IPFS DISABLED - START ONLY FOR SYNC -
|
||||||
|
[[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]] && LOWMODE="NO 5001" ## IPFS IS STOPPED
|
||||||
|
[[ ! $isLAN ]] && LOWMODE="" ## LOWMODE ONLY FOR LAN STATION
|
||||||
|
# echo "$USER ALL=(ALL) NOPASSWD:/bin/systemctl" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/systemctl')
|
||||||
|
sudo systemctl restart ipfs && sleep 10
|
||||||
|
floop=0
|
||||||
|
while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do
|
||||||
|
sleep 10
|
||||||
|
((floop++)) && [ $floop -gt 9 ] \
|
||||||
|
&& echo "ERROR. IPFS daemon not restarting" \
|
||||||
|
&& exit 1
|
||||||
|
done
|
||||||
|
# espeak "CODE git pull" > /dev/null 2>&1
|
||||||
|
|
||||||
## REMOVE TMP BUT KEEP SWARM
|
## REMOVE TMP BUT KEEP SWARM
|
||||||
mv ~/.zen/tmp/swarm ~/.zen/swarm
|
mv ~/.zen/tmp/swarm ~/.zen/swarm
|
||||||
mv ~/.zen/tmp/coucou ~/.zen/coucou
|
mv ~/.zen/tmp/coucou ~/.zen/coucou
|
||||||
|
@ -17,20 +32,12 @@ rm -Rf ~/.zen/tmp/*
|
||||||
mv ~/.zen/swarm ~/.zen/tmp/swarm
|
mv ~/.zen/swarm ~/.zen/tmp/swarm
|
||||||
mv ~/.zen/coucou ~/.zen/tmp/coucou
|
mv ~/.zen/coucou ~/.zen/tmp/coucou
|
||||||
|
|
||||||
## IPFS DAEMON STATUS
|
## UPDATE G1BILLETS code
|
||||||
LOWMODE=$(sudo systemctl status ipfs | grep disabled) ## IPFS DISABLED - START ONLY FOR SYNC -
|
|
||||||
[[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]] && LOWMODE="NO 5001" ## IPFS IS STOPPED
|
|
||||||
[[ ! $isLAN ]] && LOWMODE="" ## LOWMODE ONLY FOR LAN STATION
|
|
||||||
# echo "$USER ALL=(ALL) NOPASSWD:/bin/systemctl" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/systemctl')
|
|
||||||
sudo systemctl restart ipfs && sleep 10
|
|
||||||
|
|
||||||
# espeak "CODE git pull" > /dev/null 2>&1
|
|
||||||
|
|
||||||
## PROCESS TW BACKOFFICE TREATMENT
|
|
||||||
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] \
|
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] \
|
||||||
&& cd ~/.zen/G1BILLET/ && git pull \
|
&& cd ~/.zen/G1BILLET/ && git pull \
|
||||||
&& rm -Rf ~/.zen/G1BILLET/tmp/*
|
&& rm -Rf ~/.zen/G1BILLET/tmp/*
|
||||||
|
|
||||||
|
## UPDATE Astroport.ONE code
|
||||||
cd ~/.zen/Astroport.ONE/
|
cd ~/.zen/Astroport.ONE/
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
floop=0
|
floop=0
|
||||||
while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do
|
while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
((floop++)) && [ $floop -gt 5] \
|
((floop++)) && [ $floop -gt 5 ] \
|
||||||
&& echo "ERROR. IPFS daemon not running on port 5001" \
|
&& echo "ERROR. IPFS daemon not running on port 5001" \
|
||||||
&& espeak 'ERROR. I P F S daemon not running' \
|
&& espeak 'ERROR. I P F S daemon not running' \
|
||||||
&& exit 1
|
&& exit 1
|
||||||
|
|
|
@ -145,7 +145,7 @@ iframe {
|
||||||
|
|
||||||
<p><a href="https://qo-op.com">"UPlanet Exploration"</a></p>
|
<p><a href="https://qo-op.com">"UPlanet Exploration"</a></p>
|
||||||
<p><a href="http://127.0.0.1:8080/ipns/_ZONENS_">"_ZONE_"</a></p>
|
<p><a href="http://127.0.0.1:8080/ipns/_ZONENS_">"_ZONE_"</a></p>
|
||||||
<a href="https://api.copylaradio.com/tellme/?cid=_RWEEKCID_" target="_new"><img title="CONSULT REGION MISTRAL AI" src="http://127.0.0.1:8080/ipfs/QmZp1T7MyLhLNYM1uuLQo1HWVx5NLbBzh56RXm9fDEtLrs" \></a>
|
<a href="https://api.copylaradio.com/tellme/?cid=_RWEEKCID_" target="aiapi"><img title="CONSULT REGION MISTRAL AI" src="http://127.0.0.1:8080/ipfs/QmZp1T7MyLhLNYM1uuLQo1HWVx5NLbBzh56RXm9fDEtLrs" \></a>
|
||||||
<br>
|
<br>
|
||||||
<p>Distributed Information System</p>
|
<p>Distributed Information System</p>
|
||||||
<p>refreshed by <a href="https://github.com/papiche/Astroport.ONE">Astroport.ONE</a></p>
|
<p>refreshed by <a href="https://github.com/papiche/Astroport.ONE">Astroport.ONE</a></p>
|
||||||
|
@ -158,7 +158,7 @@ iframe {
|
||||||
<a href="INFO.png" target="aframe" title="INFO"> _(i)_ </a> /
|
<a href="INFO.png" target="aframe" title="INFO"> _(i)_ </a> /
|
||||||
<a href="http://127.0.0.1:8080/ipfs/QmcSkcJ2j7GAsC2XhVqGSNAKVRpXgxfjjvDbhD5YxrncZY/?room=_PHONEBOOTH_" target="aframe" title="SECTOR 📺 ROOM 📶"> ( ° - °)_📺 📶 </a> /
|
<a href="http://127.0.0.1:8080/ipfs/QmcSkcJ2j7GAsC2XhVqGSNAKVRpXgxfjjvDbhD5YxrncZY/?room=_PHONEBOOTH_" target="aframe" title="SECTOR 📺 ROOM 📶"> ( ° - °)_📺 📶 </a> /
|
||||||
<a href="/ipns/_ZONENS_/TW" target="aframe" title="_ZONE_ TW"> <b>TW</b> </a> ♥
|
<a href="/ipns/_ZONENS_/TW" target="aframe" title="_ZONE_ TW"> <b>TW</b> </a> ♥
|
||||||
<a href="https://g1.quest/" target="aframe"_title="G1Quest"> ( Ğ ) </a>
|
<a href="https://g1.quest/" target="aframe" title="G1Quest"> ( Ğ ) </a>
|
||||||
<button id="fullscreenButton" onclick="toggleConsoleFullScreen()"> ^^ </button> <button onclick="hideConsole()"> X </button>
|
<button id="fullscreenButton" onclick="toggleConsoleFullScreen()"> ^^ </button> <button onclick="hideConsole()"> X </button>
|
||||||
<iframe name="aframe" id="aframe" src="INFO.png" width="100%" height="100%"></iframe>
|
<iframe name="aframe" id="aframe" src="INFO.png" width="100%" height="100%"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue