代码拉取完成,页面将自动刷新
同步操作将从 dreamans/syncd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。