using svnadmin in a php script
Posted
by
fabjoa
on Server Fault
See other posts from Server Fault
or by fabjoa
Published on 2011-03-12T15:13:21Z
Indexed on
2011/03/12
16:11 UTC
Read the original article
Hit count: 392
Howdie
Scenario:
Allow developers to submit new application packages to a market server. Developers run a bash script which contains a cURL call to market server (localhost/market/submit/$app-name). The submit script on the server creates a new folder in existing svn server with the name of the submitted app. Script on dev side waits for HTTP to issue a success message and then do a svn checkout in dev local machine.
Problem:
The submit script on the market server failed to create new svn directory through code:
echo `svnadmin mkdir -m 'added new package $package' http://localhost/market/packages/$package`;
this does not echo nothing and when I go on http://localhost/market/packages, the folder has not been added and the revision number has not been incremented.
I've tried from a terminal in market server
chown root:www-data /usr/bin/svnadmin
but still no luck. Somebody has come acrosss similar problem? Any solutions? Thanks!
Profile: Linux/Ubuntu, apache subversion
© Server Fault or respective owner