我被这个任务困住了。
我写了 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
有任何想法吗?