# FIRST TW MANAGER _SECRET_ is myIP

This commit is contained in:
fred 2022-10-10 00:45:45 +02:00
parent 2646c165f6
commit 6d0b2f90d2
1 changed files with 3 additions and 0 deletions

View File

@ -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