making private swarm Astroport.ONE code mutation
This commit is contained in:
parent
fa96adf059
commit
1b491454c2
|
@ -234,11 +234,17 @@ if [[ ${#ZENSTATIONS[@]} -ge 3 ]]; then
|
|||
|
||||
## APPLY ?!
|
||||
##################################################
|
||||
# Let's check and prepare Astroport mutation...
|
||||
# Let's engage Astroport.ONE code mutation...
|
||||
# tools/my.sh
|
||||
SECRETNAME=$(cat $HOME/.zen/game/players/${PLAYER}/.ipfs/${UPNAME}.swarm.key | tail -n 1)
|
||||
echo "SECRETNAME=$SECRETNAME"
|
||||
|
||||
#######################################################################
|
||||
echo "# UPlanet Swarm Bootstrap Stations #
|
||||
# https://ipfs.${UPNAME} ipfs.${UPNAME}
|
||||
#################################################################
|
||||
" > ~/.zen/tmp/${MOATS}/new_straps.list
|
||||
|
||||
# Prepare "new_straps.list" from WAN only
|
||||
for station in ${ZENSTATIONS[@]}; do
|
||||
[[ ! -s ~/.zen/tmp/swarm/${station}/myIPFS.txt ]] \
|
||||
|
@ -258,10 +264,18 @@ if [[ ${#ZENSTATIONS[@]} -ge 3 ]]; then
|
|||
|
||||
done
|
||||
|
||||
## INTRODUCE NEW BOOSTRAP LIST
|
||||
cp ~/.zen/tmp/${MOATS}/new_straps.list ~/.zen/MY_boostrap_nodes.txt
|
||||
#######################################################################
|
||||
|
||||
# make G1PalPay refuse not from "UPlanet Master Key" primal TX
|
||||
# STABLE COIN : activate OpenCollective sync
|
||||
# and adapt 20H12.process.sh
|
||||
|
||||
## UPNAME = domain.tld
|
||||
# PACTHING Astroport.ONE code
|
||||
grep -rl --exclude-dir='.git*' 'copylaradio.com' ./ | xargs sed -i "s~copylaradio.com~${UPNAME}~g"
|
||||
|
||||
|
||||
# now we add key into ~/.ipfs/swarm.key
|
||||
#~ cp $HOME/.zen/game/players/${PLAYER}/.ipfs/${UPNAME}.swarm.key ~/.ipfs/swarm.key
|
||||
|
|
|
@ -84,6 +84,7 @@ while true; do
|
|||
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||
[[ ${myIP} == "" ]] && source "${MY_PATH}/tools/my.sh" ## correct 1st run DHCP latency
|
||||
echo "/ip4/${myIP}/tcp/4001/p2p/${IPFSNODEID}" > ~/.zen/tmp/${IPFSNODEID}/myIPFS.txt
|
||||
[[ ! -z ${zipit} ]] && echo "/ip4/${zipit}/tcp/4001/p2p/${IPFSNODEID}" > ~/.zen/tmp/${IPFSNODEID}/myIPFS.txt
|
||||
|
||||
lastrun=$(cat ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats)
|
||||
duree=$(expr ${MOATS} - $lastrun)
|
||||
|
|
Loading…
Reference in New Issue