From d9f14f0138f25b97ae4711a32bc7376655d5b776 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 12 May 2021 12:30:15 +0800 Subject: [PATCH] opt some --- core/code/publish.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/code/publish.go b/core/code/publish.go index 99c08ad2..d7f5cc7a 100644 --- a/core/code/publish.go +++ b/core/code/publish.go @@ -150,10 +150,11 @@ echo "hello world" var _contexts = kit.Dict( "source", `# 源码安装 -curl -fsSL {{.Option "httphost"}} |sh -s source +yum install -y tmux make git vim +export ctx_dev={{.Option "httphost"}} ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp source `, "binary", `# 应用安装 -curl -fsSL {{.Option "httphost"}} |sh -s binary +export ctx_dev={{.Option "httphost"}} ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp binary `, "tmux", `# 终端环境 export ctx_dev={{.Option "httphost"}} ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp