CentOS 7 下安装 SVN (HTTPS + SSH)

来源:互联网 发布:闲鱼淘宝介入怎么评判 编辑:程序博客网 时间:2024/06/07 00:28
这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了....
0 0
原创粉丝点击