remove --allow-offline
This commit is contained in:
parent
de6d3fe012
commit
ef43755c81
|
@ -315,7 +315,7 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
echo "¯\_༼<O͡〰o>༽_/¯ $IPFSNODEID $PLAYER SIGNALING"
|
echo "¯\_༼<O͡〰o>༽_/¯ $IPFSNODEID $PLAYER SIGNALING"
|
||||||
ROUTING=$(ipfs add -rwq ~/.zen/tmp/${IPFSNODEID}/* | tail -n 1 )
|
ROUTING=$(ipfs add -rwq ~/.zen/tmp/${IPFSNODEID}/* | tail -n 1 )
|
||||||
ipfs name publish --allow-offline /ipfs/$ROUTING
|
ipfs name publish /ipfs/$ROUTING
|
||||||
echo "DONE"
|
echo "DONE"
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
dur=`expr $end - $start`
|
dur=`expr $end - $start`
|
||||||
|
|
|
@ -239,7 +239,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||||
~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats)
|
~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats)
|
||||||
|
|
||||||
TW=$(ipfs add -Hq ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html | tail -n 1)
|
TW=$(ipfs add -Hq ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html | tail -n 1)
|
||||||
ipfs name publish --allow-offline -t 24h --key=${PLAYER} /ipfs/${TW}
|
ipfs name publish --key=${PLAYER} /ipfs/${TW}
|
||||||
|
|
||||||
[[ $DIFF ]] && echo ${TW} > ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain
|
[[ $DIFF ]] && echo ${TW} > ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain
|
||||||
echo ${MOATS} > ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats
|
echo ${MOATS} > ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats
|
||||||
|
|
|
@ -175,7 +175,7 @@ while true; do
|
||||||
&& echo ${SWARMSIZE} > ~/.zen/tmp/swarm/.bsize \
|
&& echo ${SWARMSIZE} > ~/.zen/tmp/swarm/.bsize \
|
||||||
&& SWARMH=$(ipfs add -rwq ~/.zen/tmp/swarm/* | tail -n 1 ) \
|
&& SWARMH=$(ipfs add -rwq ~/.zen/tmp/swarm/* | tail -n 1 ) \
|
||||||
&& echo "=== ~/.zen/tmp/swarm EVOLVED : PUBLISHING NEW STATE ===" \
|
&& echo "=== ~/.zen/tmp/swarm EVOLVED : PUBLISHING NEW STATE ===" \
|
||||||
&& ipfs name publish --key "MySwarm_${IPFSNODEID}" --allow-offline /ipfs/${SWARMH}
|
&& ipfs name publish --key "MySwarm_${IPFSNODEID}" /ipfs/${SWARMH}
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
@ -201,7 +201,7 @@ while true; do
|
||||||
&& echo "${MOATS}" > ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats \
|
&& echo "${MOATS}" > ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats \
|
||||||
&& MYCACHE=$(ipfs add -rwq ~/.zen/tmp/${IPFSNODEID}/* | tail -n 1 ) \
|
&& MYCACHE=$(ipfs add -rwq ~/.zen/tmp/${IPFSNODEID}/* | tail -n 1 ) \
|
||||||
&& echo "PUBLISHING NEW BALISE STATE FOR STATION /ipns/${IPFSNODEID} INDEXES = $BSIZE octets" \
|
&& echo "PUBLISHING NEW BALISE STATE FOR STATION /ipns/${IPFSNODEID} INDEXES = $BSIZE octets" \
|
||||||
&& ipfs name publish --allow-offline /ipfs/${MYCACHE}
|
&& ipfs name publish /ipfs/${MYCACHE}
|
||||||
|
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
echo "(*__*) MySwam Update ($BSIZE B) duration was "`expr $end - $start`' seconds. '$(date)
|
echo "(*__*) MySwam Update ($BSIZE B) duration was "`expr $end - $start`' seconds. '$(date)
|
||||||
|
|
|
@ -157,7 +157,7 @@ select fav in "${choices[@]}"; do
|
||||||
~/.zen/game/players/$PLAYER/ipfs/moa/.chain.$(cat ~/.zen/game/players/$PLAYER/ipfs/moa/.moats)
|
~/.zen/game/players/$PLAYER/ipfs/moa/.chain.$(cat ~/.zen/game/players/$PLAYER/ipfs/moa/.moats)
|
||||||
|
|
||||||
TW=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/ipfs/moa/index.html | tail -n 1)
|
TW=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/ipfs/moa/index.html | tail -n 1)
|
||||||
ipfs name publish --allow-offline --key=$PLAYER /ipfs/$TW
|
ipfs name publish --key=$PLAYER /ipfs/$TW
|
||||||
|
|
||||||
echo $TW > ~/.zen/game/players/$PLAYER/ipfs/moa/.chain
|
echo $TW > ~/.zen/game/players/$PLAYER/ipfs/moa/.chain
|
||||||
echo $MOATS > ~/.zen/game/players/$PLAYER/ipfs/moa/.moats
|
echo $MOATS > ~/.zen/game/players/$PLAYER/ipfs/moa/.moats
|
||||||
|
|
Loading…
Reference in New Issue