您的位置:首页 > 理论基础 > 计算机网络

CentOS 7 下安装 SVN (HTTPS + SSH)

2016-03-26 15:36 411 查看
这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了....
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: