# FIRST TW MANAGER _SECRET_ is myIP
This commit is contained in:
parent
2646c165f6
commit
6d0b2f90d2
|
@ -58,6 +58,9 @@ for PLAYER in $(ls ~/.zen/game/players/); do
|
|||
tiddlywiki --load ~/.zen/tmp/astro/index.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'
|
||||
OLDIP=$(cat ~/.zen/tmp/miz.json | jq -r .[].secret)
|
||||
|
||||
# FIRST TW MANAGER
|
||||
[[ $OLDIP == "_SECRET_" ]] && sed -i "s~_SECRET_~${myIP}~g" ~/.zen/tmp/astro/index.html && OLDIP=$myIP
|
||||
# ALREADY MANAGED TW
|
||||
[[ $OLDIP != $myIP ]] && echo "ASTRONAUTE GATEWAY IS http://$OLDIP:8080/ipns/$ASTRONAUTENS - BYPASSING -" && continue
|
||||
|
||||
## RUN ASTROBOT SUBPROCESS
|
||||
|
|
Loading…
Reference in New Issue