启用SVN修改日志功能

网上流传的多数方法是:

在服务器端的代码库根目录下,将hooks\pre-revprop-change.tmpl,复制为pre-revprop-change。
mv hooks/pre-revprop-change.tmpl hooks/pre-revprop-change

将其中内容写作exit 0(表示允许修改)。
vi hooks/pre-revprop-change

内容为
#!/bin/sh
exit 0;

然后退出VI,赋予文件执行权限:
chmod +x hooks/pre-revprop-change

但是这些还不够!还要修改用户和组(如果你是用root用户执行上述命令的话)。
chown apache pre-revprop-change
chgrp apache pre-revprop-change

还不够!!如果你是SELinux的内核(比如CentOS),还要修改文件的安全上下文。
chcon -t httpd_exec_t pre-revprop-change

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d 博主赞过: