1 Star 0 Fork 232

opsfast/syncd

forked from dreamans/syncd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
dreamans 提交于 2019-01-11 23:35 . 增加安装脚本
#!/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
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/opsfast/syncd.git
git@gitee.com:opsfast/syncd.git
opsfast
syncd
syncd
master

搜索帮助