docker-zerotier-planet/gen_world.sh
2022-02-21 00:58:26 +08:00

14 lines
411 B
Bash

cd /var/lib/zerotier-one && zerotier-idtool initmoon identity.public > moon.json
# 添加补丁
cd /opt/patch && python3 patch.py
cd /var/lib/zerotier-one && zerotier-idtool genmoon moon.json && mkdir moons.d && cp ./*.moon ./moons.d
# 生成世界
cd /opt/ZeroTierOne/attic/world/
sh build.sh
sleep 5s
./mkworld
ps -ef |grep 'zerotier-one -d' |grep -v grep |awk '{print $1}' |xargs kill -9
zerotier-one -d