CentOS 7 下安装 SVN (HTTPS + SSH)

这2天根据下面指导安装CentOS 7 下安装 SVN (HTTPS + SSH) ,   一切都很正常. 
CentOS安装SVN服务器并配置HTTPS连接


除了下面的配置一开始没注意到,费了点时间.
chcon -R -t  httpd_sys_content_t       svn库目录
chcon -R -t  httpd_sys_rw_content_t    svn库目录

然后,想加个钩子,让开发人员提交的时候必须写注释。然后有下面的错误.
Commit blocked by pre-commit hook (exit code 255) with no output.

找了好久,有下面的解决方案.
Svn pre-commit hook not getting executed 
 
Finally got a solution for this. The root cause was the SELinux not allowing the pre-commit script to get executed through the httpd service. I get rid of that by running this line
chcon -t httpd_exec_t pre-commit

有点奇怪,为什么用YUM 安装的SVN server 是1.7的版本? 官方的都到了1.9了....
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值