私はその仕事に行き詰まっています。
何かが変更された場合、サーバー上の作業コピーを更新する必要がある 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
何か案は?