error correction
This commit is contained in:
parent
41512e4672
commit
d1aa86a047
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Run After PLAYER.entrance.sh
|
# Run After PLAYER.entrance.sh
|
||||||
|
################################################################################
|
||||||
|
MY_PATH="`dirname \"$0\"`" # relative
|
||||||
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
|
ME="${0##*/}"
|
||||||
######################################################################### CONNECT PLAYER WITH GCHANGE
|
######################################################################### CONNECT PLAYER WITH GCHANGE
|
||||||
# Check who is .current PLAYER
|
# Check who is .current PLAYER
|
||||||
PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) || ( echo "noplayer" && exit 1 )
|
PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) || ( echo "noplayer" && exit 1 )
|
||||||
|
|
|
@ -157,7 +157,7 @@ G1PUB=$(cat /tmp/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||||
sed -i "s~ipfs.infura.io~tube.copylaradio.com~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html
|
sed -i "s~ipfs.infura.io~tube.copylaradio.com~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html
|
||||||
|
|
||||||
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
||||||
sed -i "s~127.0.0.1~$myIP~g" ~/.zen/game/world/$WISHKEY/index.html
|
sed -i "s~127.0.0.1~$myIP~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html
|
||||||
|
|
||||||
tiddlywiki --verbose --load ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html \
|
tiddlywiki --verbose --load ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html \
|
||||||
--import ~/.zen/Astroport.ONE/templates/data/local.api.json "application/json" \
|
--import ~/.zen/Astroport.ONE/templates/data/local.api.json "application/json" \
|
||||||
|
|
Loading…
Reference in New Issue