未验证 提交 ac4246ab 编写于 作者: M MizuhaHimuraki 提交者: GitHub

Merge pull request #1 from frf12/build_bug

fix build.sh and update README
# remove spec
rm -f ob-deploy.spec
# push to oceanbase-ce-publish/obdeploy
rm -rf .git && git init
git remote add origin git@gitlab.alibaba-inc.com:oceanbase-ce-publish/obdeploy
git add -f . && git commit -m "init push"
git push -f origin master
\ No newline at end of file
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
使用源码安装 OBD 之前,请确认您已安装以下依赖: 使用源码安装 OBD 之前,请确认您已安装以下依赖:
- gcc - gcc
- wget
- python-devel - python-devel
- openssl-devel - openssl-devel
- xz-devel - xz-devel
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
使用源码安装 OBD 之前,请确认您已安装以下依赖: 使用源码安装 OBD 之前,请确认您已安装以下依赖:
- gcc - gcc
- wget
- python-devel - python-devel
- openssl-devel - openssl-devel
- xz-devel - xz-devel
......
...@@ -19,12 +19,12 @@ if [ "x$REPLY" != "x" ]; then ...@@ -19,12 +19,12 @@ if [ "x$REPLY" != "x" ]; then
fi fi
rm -fr /usr/obd && mkdir -p /usr/obd rm -fr /usr/obd && mkdir -p /usr/obd
rm -fr $obd_dir/mirror/remote -p $obd_dir/mirror/remote && cd $obd_dir/mirror/remote
wget http://yum.tbsite.net/mirrors/oceanbase/OceanBase.repo
cp -r -d $obd_dir/* /usr/obd cp -r -d $obd_dir/* /usr/obd
cd /usr/obd/plugins && ln -sf oceanbase oceanbase-ce cd /usr/obd/plugins && ln -sf oceanbase oceanbase-ce
cp -f /usr/obd/profile/obd.sh /etc/profile.d/obd.sh cp -f /usr/obd/profile/obd.sh /etc/profile.d/obd.sh
rm -fr /usr/obd/mirror/remote && mkdir -p /usr/obd/mirror/remote
cd /usr/obd/mirror/remote && wget http://yum.tbsite.net/mirrors/oceanbase/OceanBase.repo
rm -fr /usr/bin/obd rm -fr /usr/bin/obd
echo -e "# /bin/bash\n$python_bin /usr/obd/_cmd.py \$*" > /usr/bin/obd echo -e "# /bin/bash\n$python_bin /usr/obd/_cmd.py \$*" > /usr/bin/obd
chmod +x /usr/bin/obd chmod +x /usr/bin/obd
echo -e 'Installation of obd finished successfully\nPlease source /etc/profile.d/obd.sh to enable it' echo -e 'Installation of obd finished successfully\nPlease source /etc/profile.d/obd.sh to enable it'
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册