【发布时间】:2009-07-26 13:19:21
【问题描述】:
我被这个任务困住了。
我已经编写了 svn post-commit 钩子,它应该更新服务器上的工作副本,如果有什么改变的话。但似乎它没有对该文件夹的权限,但我已将它们设置为允许每个人在那里读写。
所以这里是测试脚本:
#!/bin/sh
REPOS="$1"
REV="$2"
DIR="/root/root/trunk"
touch $DIR/worked
我得到了输出:
Committed revision 51.
Warning: 'post-commit' hook failed with error output:
touch: cannot touch `/root/root/trunk/worked': Permission denied
以及目标文件夹的权限:
[root@ovz6022 trunk]# ls -la
total 24
drwxrwxrwx 5 apache apache 4096 Jul 26 07:08 .
drwxrwxrwx 6 apache apache 4096 Jul 24 02:14 ..
-rwxrwxrwx 1 apache apache 1367 Jul 24 02:45 pom.xml
drwxrwxrwx 4 apache apache 4096 Jul 24 02:23 src
drwxrwxrwx 6 apache apache 4096 Jul 24 13:31 .svn
drwxrwxrwx 7 apache apache 4096 Jul 24 11:18 target
有什么想法吗?
【问题讨论】:
标签: linux svn unix permissions post-commit