I have been searching EVERYWHERE for a solution to my problem, I have been sent to the red-bean "answer" so many times I think I know it word by word.
Here is my problem, I run a WHM/cPanel server and want to make a repository (/home/<user>/svn) update a working copy (/home/<user>/public_html/dev) to work on a dev. subdomain on each site we have.
I have the the SVN part working but can not get anything about the post commit to work. I even simplified it to the point that all the /hooks/post-commit file contained was..
Code:
#!/bin/sh
REPOS="$1"
REV="$2"
echo "post-commit: $REPOS // $REV" >> /home/<user>/svn/hooks/log.txt
of course <user> is my username
This works with the below commands
Quote:
su - nobody
env - ./post-commit repository 1234
|
Quote:
su - <user>
env - ./post-commit thisrepo 4321
|
etc. but when I commit a change on a remote working copy it does not log the change. meaning the post-commit does not fire, or the post-commit did not work??
I am very lost, don't know what else to try, I am not sure if it is because I am running it off of mod_dav_svn.so
Quote:
<VirtualHost <ip>:80>
ServerName svn.<url>
<IfModule mod_dav_svn.c>
<Location / >
DAV svn
SVNPath /home/<username>/svn
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /home/<username>/svn-auth
Require valid-user
</Location>
</IfModule>
</VirtualHost>
|
Everything on the SVN seems to work though.
Any direction that doesn't link to red-bean would be GREAT!!