From c6bf65e727f46f62e79a4097ea0520d374956d4f Mon Sep 17 00:00:00 2001 From: xubiaolin Date: Tue, 23 Aug 2022 17:37:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E5=88=A0=E9=99=A4init.s?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.sh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 init.sh diff --git a/init.sh b/init.sh deleted file mode 100755 index c2aa4fd..0000000 --- a/init.sh +++ /dev/null @@ -1,48 +0,0 @@ -echo "update source" -echo "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse -deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse -deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse -deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse -deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse -" >/etc/apt/sources.list -apt update -apt upgrade -y -apt install -y tzdata -ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime -echo ${TZ} >/etc/timezone -dpkg-reconfigure --frontend noninteractive tzdata -rm -rf /var/lib/apt/lists/* - -apt update -apt install git python3 npm make curl wget -y - -mkdir /usr/include/nlohmann/ -cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp - -npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp -curl -s https://install.zerotier.com | bash -cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git --depth 1 -cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/zerotier/ZeroTierOne.git --depth 1 - -cd /opt/ztncui/src -npm install -cp -pv ./etc/default.passwd ./etc/passwd -echo 'HTTP_PORT=3443' >.env -echo 'NODE_ENV=production' >>.env -echo 'HTTP_ALL_INTERFACES=true' >>.env - -cd /var/lib/zerotier-one && zerotier-idtool initmoon identity.public >moon.json -cd /app/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 - -cd /opt/ZeroTierOne/attic/world/ && ./mkworld -mkdir /app/bin -p && cp world.bin /app/bin/planet - -service zerotier-one restart