1 Star 0 Fork 231

liuguicheng/syncd

forked from dreamans/syncd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 860 Bytes
一键复制 编辑 原始数据 按行查看 历史
听寒 提交于 2019-01-15 12:45 . 安装脚本通过go env获取GOPATH
#!/bin/bash
syncd_repo="github.com/dreamans/syncd"
build_repo="github.com/dreamans/syncd/syncd"
install_path=$( cd `dirname $0`; pwd )/syncd-deploy
if [ -d ${install_path} ];then
install_path=${install_path}-$( date +%Y%m%d%H%M%S )
fi
if [ -z ${GOPATH} ];then
GOPATH=`go env GOPATH`
fi
build_syncd() {
go get ${build_repo}
cd $GOPATH/src/${build_repo}
go run build.go
}
install_syncd() {
mkdir ${install_path}
cd ${install_path}
mkdir bin log etc
cp $GOPATH/src/${build_repo}/syncd ./bin/
cp $GOPATH/src/${syncd_repo}/syncd.example.ini ./etc/syncd.ini
cp -r $GOPATH/src/${syncd_repo}/public ./public
}
build_syncd
install_syncd
echo "Installing syncd binary: ${install_path}/bin"
echo "Installing web public: ${install_path}/public"
echo "Installing syncd.ini: ${install_path}/etc"
echo "Install complete"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liuguicheng/syncd.git
git@gitee.com:liuguicheng/syncd.git
liuguicheng
syncd
syncd
master

搜索帮助