I need to run a cron job to add a svn repository using reposman.rb for Redmine. But we also have a php script (with an interface) that enable us to create repositories automaticly.
The php script receives a $_POST value, create the repos, sets permissions, assign some group for read and write access to the newly created repos.
My question is this:
- how could I execute the php script, instead of the
svnadmin create
command in reposman.rb? - How can I give a $_POST parameter to the php script, so it could setup my svn repos correctly, using the php script.
Thanks
Edit: Here are some example of what both scripts do.
Ruby script:
... // Add the repos system "svnadmin create #{path}" ...
Php script:
// Receive the name of the repos to add $dir= $_POST["dir"]; // Do all the stuff with the permissions $cmd= "sudo /usr/local/bin/createsvnrepo $dir"; system("$cmd", $retval); ...